am 62bb2dcc: change the tab selector icons

Merge commit '62bb2dccdd9dcf223908c728e24460e8248a9e7a' into gingerbread-plus-aosp

* commit '62bb2dccdd9dcf223908c728e24460e8248a9e7a':
  change the tab selector icons
This commit is contained in:
Nick Kralevich
2010-10-12 11:33:33 -07:00
committed by Android Git Automerger
7 changed files with 8 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_menu_desk_clock"
android:state_selected="true" />
<item android:drawable="@drawable/ic_menu_desk_clock48" />
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!-- When selected, use grey -->
<item android:drawable="@drawable/ic_tab_artists_grey"
android:state_selected="true" />
<!-- When not selected, use white-->
<item android:drawable="@drawable/ic_tab_artists_white" />
</selector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 791 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -47,12 +47,12 @@ public class Tags extends TabActivity {
TabHost.TabSpec spec1 = tabHost.newTabSpec("1") TabHost.TabSpec spec1 = tabHost.newTabSpec("1")
.setIndicator("Saved", res.getDrawable(R.drawable.ic_tab_artists)) .setIndicator("Saved", res.getDrawable(R.drawable.ic_launcher_nfc))
.setContent(iSavedList); .setContent(iSavedList);
tabHost.addTab(spec1); tabHost.addTab(spec1);
TabHost.TabSpec spec2 = tabHost.newTabSpec("2") TabHost.TabSpec spec2 = tabHost.newTabSpec("2")
.setIndicator("Recent", res.getDrawable(R.drawable.ic_tab_artists)) .setIndicator("Recent", res.getDrawable(R.drawable.desk_clock))
.setContent(iRecentList); .setContent(iRecentList);
tabHost.addTab(spec2); tabHost.addTab(spec2);
} }