Posts

Showing posts from 2025

How to Properly Target Android 15 (API Level 35) and Handle Edge-to-Edge UI Changes

Image
Google Play now requires all apps to target Android 15 (API level 35) or higher. While this update is essential for staying compliant and accessing new platform features, it also introduces layout challenges—particularly with the system bars and app bars. In this blog post, I’ll walk you through the step-by-step process to update your project and handle edge-to-edge layout issues that might arise. Before    After  ✅ Step 1: Update Your Target SDK to Android 15 In your app's build.gradle file, update the target SDK version: gradle android { compileSdk 35 defaultConfig { targetSdk 35 } } After updating, you might notice that your AppBar overlaps with the system status bar . This is due to Android’s edge-to-edge layout behavior, which changes how content interacts with system bars. 🛠️ Step 2: Enable Edge-to-Edge Display in Your Activity If you’re using a BaseActivity or a regular Activity , add the following code before setContentView() in y...