Hi All,
I have a problem with my tab style. I would like my tab style will look like this.
http://www.technobuzz.net/wp-content/uploads/2010/02/seesmic-android-260-208.png Something goes wrong in my xml ...
- The style shows only the colors When selected from the comment.
- When I use a white icon is the text (text setindicator) white. This also applies to the gray icon.
How can I fix this.
Does anyone have the same tabstyle as the link above and want to share with me ..
Thanks a lot!!
The style Code
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Onclick -->
<item android:state_pressed="true" >
<shape>
<gradient
android:startColor="#000000"
android:endColor="#000000"
android:angle="270" />
<stroke
android:width="3dp"
android:color="#2e2e2e" />
<corners
android:radius="3dp" />
</shape>
</item>
<!-- Don't work -->
<item android:state_focused="true" >
<shape>
<gradient
android:endColor="#802222"
android:startColor="#B02222"
android:angle="270" />
<stroke
android:width="3dp"
android:color="#2e2e2e" />
<corners
android:radius="3dp" />
</shape>
</item>
<!-- When selected -->
<item>
<shape>
<gradient
android:startColor="#e8e8e8"
android:centerColor="#f8f8f8"
android:endColor="#f8f8f8"
android:textColor="#ea9d32"
android:height="1px"
android:angle="0" />
<stroke
android:width="3dp"
android:color="#2e2e2e" />
<corners
android:radius="3dp" />
</shape>
</item>
</selector>
I can't create (little android xml experience) an style.. Does anyone have a tab style for what looks like the link. Thnx!