Sanjay Bhalani
Sanjay Bhalani

Reputation: 2454

What is the replacement for deprecated APIs related to edge-to-edge in Android 35+?

In my Android app, I am currently using the following deprecated APIs for edge-to-edge and system UI customizations:

android.view.Window.setDecorFitsSystemWindows
android.view.Window.setStatusBarColor
android.view.Window.setNavigationBarColor
android.view.Window.setNavigationBarDividerColor
android.view.Window.getStatusBarColor
ui.edge_to_edge.EdgeToEdgeOSWrapper.setDecorFitsSystemWindows

These APIs are deprecated in Android API 35 and above. Could you anyone guide me on the replacement APIs or best practices for implementing edge-to-edge UI and customizing system UI elements (such as status bar and navigation bar) on Android 35+?

Upvotes: 1

Views: 509

Answers (0)

Related Questions