Skip to content

Commit

Permalink
Icons in the ExploreTabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
arantius committed Aug 20, 2011
1 parent d31666f commit d95c16a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
Binary file added res/drawable-hdpi/icon_people.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/icon_similar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/icon_tv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 11 additions & 3 deletions res/layout/about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,24 @@ with this program; if not, write to the Free Software Foundation, Inc.,
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="6dip" />

<TextView android:id="@+id/textView5"
android:text="Otherwise all source code and resources Copyright © 2011 Anthony Lieuallen."
<TextView android:id="@+id/textView4"
android:text="Contains the JmDNS multi-cast DNS library, used under the terms of the Apache (AL 2.0) license."
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="6dip" />

<TextView android:id="@+id/textView8"
android:text="Contains images from the &quot;Farm-Fresh Web Icons&quot; set by FatCow, used under the terms of the Creative Commons 3.0 Attribution license."
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="6dip" />
<TextView android:id="@+id/textView9"
android:text="http://www.fatcow.com/free-icons"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="6dip" android:autoLink="web" />

<TextView android:id="@+id/textView6"
android:text="TiVo Commander comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; read the license (link below) for more details."
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="6dip" />

<TextView android:id="@+id/textView7"
android:text="http://opensource.org/licenses/gpl-2.0.php"
android:layout_width="wrap_content" android:layout_height="wrap_content"
Expand Down
13 changes: 7 additions & 6 deletions src/com/arantius/tivocommander/ExploreTabs.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public class ExploreTabs extends TabActivity {
private String mRecordingId;
private TabHost mTabHost;

private TabSpec makeTab(String name, Class<? extends Activity> cls) {
private TabSpec makeTab(String name, Class<? extends Activity> cls, int iconId) {
TabSpec tab = mTabHost.newTabSpec(name);
tab.setIndicator(name);
tab.setIndicator(name, getResources().getDrawable(iconId));

Intent intent = new Intent(getBaseContext(), cls);
if (mCollectionId != null) {
Expand Down Expand Up @@ -91,11 +91,12 @@ protected void onCreate(Bundle savedInstanceState) {
mRecordingId = null;
}

// TODO: Icons for the tabs.
mTabHost.addTab(makeTab("Explore", Explore.class));
mTabHost.addTab(makeTab("Explore", Explore.class, R.drawable.icon_tv));
if (mCollectionId != null) {
mTabHost.addTab(makeTab("Credits", Credits.class));
mTabHost.addTab(makeTab("Also", Suggestions.class));
mTabHost
.addTab(makeTab("Credits", Credits.class, R.drawable.icon_people));
mTabHost.addTab(makeTab("Similar", Suggestions.class,
R.drawable.icon_similar));
}
}
}

0 comments on commit d95c16a

Please sign in to comment.