Flat action bar with Theme.Material

can someone help me with Material?

I want the action bar to be flat. Here is the code I'm trying to use.

<style name="Theme.Kpi_Schedule.full" parent="android:Theme.Material.Light.DarkActionBar">
   <item name="android:windowContentOverlay">@null</item>
   <item name="android:colorPrimaryDark">#1E88E5</item>
   <item name="android:popupBackground">#fff</item>
   <item name="android:windowTranslucentNavigation">true</item>
   <item name="android:navigationBarColor">@android:color/transparent</item>
   <item name="android:actionBarStyle">@style/ActionBar.Solid.Kpi_Schedule.full</item>
</style>

<style name="ActionBar.Solid.Kpi_Schedule.full" parent="android:Widget.Material.ActionBar.Solid">
   <item name="android:windowActionBarOverlay">true</item>
   <item name="android:background">#03A9F4</item>
   <item name="android:displayOptions">homeAsUp</item>
</style>

Problemm here

+4
source share
2 answers

I found the answer:

I had to add

<item name="android:elevation">0dp</item>

to my theme file.

+6
source

This is not an action bar. Its "Toolbar" See this link for more information http://android-developers.blogspot.in/2014/10/appcompat-v21-material-design-for-pre.html

, . U , , : https://github.com/markushi/android-ui

-1

All Articles