Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dark activities with android compat without actionbar?

How can I implement dark screens without actionbar in the appcompat theme? I have implemented the navigation drawer, where the theme comes from style.xml.

Here's my current theme:

<resources>
  <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowDrawsSystemBarBackgrounds">true</item>
    <item name="android:statusBarColor">@android:color/transparent</item>
    <item name="android:windowTranslucentStatus">true</item>
  </style>
</resources>
like image 536
lis Avatar asked Aug 25 '15 09:08

lis


1 Answers

Simple.

parent="Theme.AppCompat.NoActionBar"
like image 189
Алексей Мальченко Avatar answered Nov 07 '22 00:11

Алексей Мальченко