android - I don't obtain change color of AppCompat -
i'm having same problem, generate theme via x , after add together project , did correctly references in styles.xml, don't work.
my manifest.xml this:
<uses-sdk android:minsdkversion="8" android:targetsdkversion="21" />
was generated file below in http://jgilfelt.github.io/android-actionbarstylegenerator
styles_custom.xml, add together in res/values/styles.xml:
<style name="appbasetheme" parent="theme.appcompat.light"> </style>
<style name="apptheme" parent="appbasetheme"> <!-- customizations not specific particular api-level can go here. --> <item name="actionbaritembackground">@drawable/selectable_background_custom</item> <item name="popupmenustyle">@style/popupmenu.custom</item> <item name="dropdownlistviewstyle">@style/dropdownlistview.custom</item> <item name="actionbartabstyle">@style/actionbartabstyle.custom</item> <item name="actiondropdownstyle">@style/dropdownnav.custom</item> <item name="actionbarstyle">@style/actionbar.solid.custom</item> <item name="actionmodebackground">@drawable/cab_background_top_custom</item> <item name="actionmodesplitbackground">@drawable/cab_background_bottom_custom</item> <item name="actionmodeclosebuttonstyle">@style/actionbutton.closemode.custom</item> </style>
and in res/value-v14/styles.xml
<style name="appbasetheme" parent="theme.appcompat.light.darkactionbar"> <!-- api 14 theme customizations can go here. --> <item name="android:actionbaritembackground">@drawable/selectable_background_custom</item> <item name="android:popupmenustyle">@style/popupmenu.custom</item> <item name="android:dropdownlistviewstyle">@style/dropdownlistview.custom</item> <item name="android:actionbartabstyle">@style/actionbartabstyle.custom</item> <item name="android:actiondropdownstyle">@style/dropdownnav.custom</item> <item name="android:actionbarstyle">@style/actionbar.solid.custom</item> <item name="android:actionmodebackground">@drawable/cab_background_top_custom</item> <item name="android:actionmodesplitbackground">@drawable/cab_background_bottom_custom</item> <item name="android:actionmodeclosebuttonstyle">@style/actionbutton.closemode.custom</item> </style>
well can help me, or give me best directions, please?
tks. :d
appcompat library project. need reference library project in android project. first need dowload library through sdk manager .
to download back upwards library through sdk manager:-
refer link:- https://developer.android.com/tools/support-library/setup.html
in above link read topic :-adding libraries resources ( inlcudes many steps why giving link )
after completing these steps :-
you can add together library application project:
step 1:- in project explorer, right-click project , select properties.
step2:- in category panel on left side of dialog, select android.
step 3:- in library pane, click add together button.
step 4:- select library project , click ok. example, appcompat project should listed android-support-v7-appcompat.
step 5:- in properties window, click ok
note :-if app using back upwards library compatibility on devices running versions lower android 3.0, custom theme should utilize theme.appcompat theme (or 1 of descendants) parent theme.
android
No comments:
Post a Comment