Skip to content
Browse files

Fix tab icons and labels.

The blue icons are ugly though
  • Loading branch information...
1 parent f42d728 commit 4e1240086a4b2431184127af83bde911caeb08ce @axelson axelson committed Dec 6, 2011
View
BIN res/drawable-hdpi/calendar_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN res/drawable-hdpi/globe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN res/drawable-hdpi/globe_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
8 res/drawable-hdpi/ic_tab_community.xml
@@ -0,0 +1,8 @@
+<?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/calendar"
+ android:state_selected="true" />
+ <!-- When not selected, use white-->
+ <item android:drawable="@drawable/calendar_blue" />
+</selector>
View
4 res/drawable-hdpi/ic_tab_conference.xml
@@ -1,8 +1,8 @@
<?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/calendar"
+ <item android:drawable="@drawable/globe"
android:state_selected="true" />
<!-- When not selected, use white-->
- <item android:drawable="@drawable/ic_tab_artists_grey" />
+ <item android:drawable="@drawable/globe_blue" />
</selector>
View
BIN res/drawable-ldpi/calendar_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN res/drawable-ldpi/globe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN res/drawable-ldpi/globe_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN res/drawable-mdpi/calendar_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN res/drawable-mdpi/globe.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN res/drawable-mdpi/globe_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
10 src/org/hicapacity/techhui/TechHuiActivity.java
@@ -22,20 +22,20 @@ public void onCreate(Bundle savedInstanceState) {
intent = new Intent().setClass(this, ConferenceActivity.class);
// Initialize a TabSpec for each tab and add it to the TabHost
- spec = tabHost.newTabSpec("artists")
- .setIndicator("Artists", res.getDrawable(R.drawable.calendar))
+ spec = tabHost.newTabSpec("conference")
+ .setIndicator("Conference", res.getDrawable(R.drawable.ic_tab_conference))
.setContent(intent);
tabHost.addTab(spec);
// Do the same for the other tabs
intent = new Intent().setClass(this, CommunityActivity.class);
spec = tabHost.newTabSpec("albums")
- .setIndicator("Albums", res.getDrawable(R.drawable.calendar)).setContent(intent);
+ .setIndicator("Albums", res.getDrawable(R.drawable.ic_tab_conference)).setContent(intent);
tabHost.addTab(spec);
intent = new Intent().setClass(this, SongsActivity.class);
- spec = tabHost.newTabSpec("songs")
- .setIndicator("Songs", res.getDrawable(R.drawable.ic_tab_conference)).setContent(intent);
+ spec = tabHost.newTabSpec("community")
+ .setIndicator("Community", res.getDrawable(R.drawable.ic_tab_community)).setContent(intent);
tabHost.addTab(spec);
tabHost.setCurrentTab(2);

0 comments on commit 4e12400

Please sign in to comment.
Something went wrong with that request. Please try again.