I\'m updating an app to use the new Toolbar
instead of the regular ActionBar
.
In my app the user must be able to select a contact from their contac
simplest solution without changing xml and keeping translucent system bar is to add: kotlin:
toolbar.setOnApplyWindowInsetsListener { toolbar, windowInsets ->
toolbar.updatePadding(
windowInsets.systemWindowInsetLeft,
windowInsets.systemWindowInsetTop,
windowInsets.systemWindowInsetRight,
0
)
windowInsets.consumeSystemWindowInsets()
}
please check if your fitsSystemWindows=true
are placed correctly.