I am working on creating an application with a lollipop panel with a translucent status panel so that the status bar also displays. It works fine with true.
It's just that the toolbar overlaps with a status bar that looks dirty. What is the option of positioning the toolbar under the status bar while maintaining the status of a translucent window?
Code snippets:
<style name="Theme.XXX" parent="Theme.AppCompat"> <item name="colorPrimary">...</item> <item name="colorPrimaryDark">...</item> <item name="android:windowTranslucentStatus">true</item> <item name="windowActionBar">false</item> <item name="colorAccent">...</item> </style>
Toolbar code used in the action:
<android.support.v7.widget.Toolbar android:id="@+id/main_toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/XXX" android:elevation="5dp" android:minHeight="?attr/actionBarSize" android:theme="@style/Theme.XXX" />
Thanks in advance.
android android-5.0-lollipop android-4.4-kitkat
sushant kunal
source share