i totally new android.
i made own action bar code below :
<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:id="@+id/action_search" android:icon="@drawable/search_icon" android:title="@string/action_search" app:showasaction="ifroom" /> <!-- settings, should in overflow --> <item android:id="@+id/action_settings" android:title="@string/action_settings123" app:showasaction="never" /> </menu> i want change properties (like color, background) of item(s) under menu list(currently having single item 'settings')
here did in style.xml :
<resources> <!-- base application theme. --> <style name="apptheme" parent="base.theme.appcompat.light.darkactionbar"> <item name="android:edittextstyle">@style/app_edittextstyle</item> <item name="android:actionmenutextappearance">@style/menuiconformatting</item> <!-- customize theme here. --> </style> <style name="app_edittextstyle" parent="@android:style/widget.edittext"> <item name="android:textcolor">@android:color/holo_red_dark</item> <item name="android:textcursordrawable">@null</item> </style> <style name="menuiconformatting" parent="android:textappearance.holo.widget.actionbar.title"> <item name="android:textcolor">@android:color/holo_green_dark</item> </style> </resources> please let me know doing wrong here.
thanks in advance.
base.theme.appcompat.light.darkactionbarhave tried adding property android:actionbarstyle? put inside of apptheme
<item name="android:actionbarstyle">@style/myawesomeactionbarstyle</item> now style want
<style name="myawesomeactionbarstyle" parent="base.theme.appcompat.light.darkactionbar"> <item name="android:background">some_hex_color_code</item> <item name="android:textcolor">some_hex_color_code</item> </style> i hope sets on right track :)
Comments
Post a Comment