Issue
Check the below image I need same things in my app. I wanted to hide just actionbar not statusbar(titlebar). I use below code where both actionbar and statusbar hide.
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
</style>
Solution
By using this code, you can hide actionbar
and statubar
will remain in design.
Just add this in your style.xml
<style name="AppTheme.NooActionBar" parent="AppTheme">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
add below code in your AndroidManifest.xml
<activity
android:name=".LoginActivity"
android:theme="@style/AppTheme.NooActionBar" />
Answered By - Prashant Arvind
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.