Frage

okay, ich suche nach einer Möglichkeit, die orange Farbe ändern zu können, die erscheint, wenn Sie auf eine Registerkarte in Android TabView klicken und ändern Sie die orangefarbene Grenzfarbe um eine Suchleiste ... AnyEsas Wie kann man so etwas tun?

das ist meine Hauptregisterkarte generasacodicetagpre.

und ich habe das für meine Suchleiste generasacodicetagpre.

irgendwelche Ideen ??? Danke ALOT für alle Ihre Hilfe !!!!

War es hilfreich?

Lösung

You need to use themes. You can setup a style.xml in res/values and inherit from Holo and override the properties you need to. I did this for the Tab's in the action bar:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- the theme applied to the application or activity -->
<style name="Theme.Mine" parent="android:style/Theme.Holo">
    <item name="android:actionBarTabStyle">@style/MyActionBarTabStyle</item> 
    <item name="android:actionDropDownStyle">@style/MyDropDownNav</item> 

    <item name="android:selectableItemBackground">@drawable/ad_selectable_background</item> 
    <item name="android:popupMenuStyle">@style/MyPopupMenu</item> 
    <item name="android:dropDownListViewStyle">@style/MyDropDownListView</item> 
    <item name="android:listChoiceIndicatorMultiple">@drawable/ad_btn_check_holo_light</item> 
    <item name="android:listChoiceIndicatorSingle">@drawable/ad_btn_radio_holo_light</item> 
</style>


<style name="MyActionBarTabStyle" >
    <item name="android:background">@drawable/actionbar_tab_bg</item>
    <item name="android:textColorHighlight">#FF5555</item>
    <item name="android:paddingLeft">10dip</item>
    <item name="android:paddingRight">10dip</item>
</style>

   <style name="TableCellStyle" parent="Theme.Mine">
        <item name="android:textColor">#000000</item>
    <item name="android:textSize">15sp</item>   
    </style>
</resources>

Then you can reference this theme in your manifest file. You can read all about it here: http://developer.android.com/guide/topics/ui/themes.html

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top