I created one resource file with colors, and i can change only the entire
background. I can't change color for  widget.
I want to change background for the indicator where is a char sequence and
an icon. Resource files are following


Colors:

<resources>
    <drawable name="red">#7f00</drawable>
    <drawable name="blue">#770000ff</drawable>
    <drawable name="green">#7700ff00</drawable>
    <drawable name="yellow">#77ffff00</drawable>

    <drawable name="screen_background_black">#ff000000</drawable>
    <drawable name="translucent_background">#e0000000</drawable>
    <drawable name="transparent_background">#00000000</drawable>

    <color name="solid_red">#f00</color>
    <color name="solid_blue">#0000ff</color>
    <color name="solid_green">#f0f0</color>
    <color name="solid_yellow">#ffffff00</color>

</resources>


And tab:

<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android";
     android:id="@+id/th_set_menu_tabhost"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent">

     <TabWidget
          android:id="@android:id/tabs"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"

          />
     <FrameLayout
          android:id="@android:id/tabcontent"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:paddingTop="65px">

          <ListView
          android:id = "@+id/danhsach"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          />
     </FrameLayout>
</TabHost>







On Mon, Sep 22, 2008 at 11:04 PM, hackbod <[EMAIL PROTECTED]> wrote:

>
> You can't just change the color, you'd need to make your own tab
> drawable graphic (with the various required states) and have it use
> that instead.
>
> On Sep 22, 8:37 am, "Valentin Chifa" <[EMAIL PROTECTED]> wrote:
> >          Can sommebody help me with a litle question. I'm beginner in
> > Android's Platform and i want to change the defult color orange when a
> tab
> > is selected and i d'ont know from where. A short sequece code will be
> > helpfull for me. Thanks a lot!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to