aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-08-26 22:14:41 -0700
committerScott Jackson <daneren2005@gmail.com>2014-08-26 22:14:41 -0700
commit82cc01b8757663f29ead64b664ac3421ee29cf10 (patch)
tree5432a9da6c70422c5c783b2310dc1d8a9208ef96
parent4470fd60a6c28ae3a6b2d35e30baec6834cc7c1d (diff)
downloaddsub-82cc01b8757663f29ead64b664ac3421ee29cf10.tar.gz
dsub-82cc01b8757663f29ead64b664ac3421ee29cf10.tar.bz2
dsub-82cc01b8757663f29ead64b664ac3421ee29cf10.zip
#377 Add display portion of the logic to display a counter of how many new albums
-rw-r--r--res/drawable-hdpi/ic_number_border.pngbin0 -> 2058 bytes
-rw-r--r--res/drawable-mdpi/ic_number_border.pngbin0 -> 1206 bytes
-rw-r--r--res/drawable-xhdpi/ic_number_border.pngbin0 -> 2798 bytes
-rw-r--r--res/drawable-xxhdpi/ic_number_border.pngbin0 -> 5066 bytes
-rw-r--r--res/layout/main_buttons.xml32
5 files changed, 29 insertions, 3 deletions
diff --git a/res/drawable-hdpi/ic_number_border.png b/res/drawable-hdpi/ic_number_border.png
new file mode 100644
index 00000000..d05aa7c2
--- /dev/null
+++ b/res/drawable-hdpi/ic_number_border.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_number_border.png b/res/drawable-mdpi/ic_number_border.png
new file mode 100644
index 00000000..212fabce
--- /dev/null
+++ b/res/drawable-mdpi/ic_number_border.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_number_border.png b/res/drawable-xhdpi/ic_number_border.png
new file mode 100644
index 00000000..1b370fbd
--- /dev/null
+++ b/res/drawable-xhdpi/ic_number_border.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_number_border.png b/res/drawable-xxhdpi/ic_number_border.png
new file mode 100644
index 00000000..caf4ca23
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_number_border.png
Binary files differ
diff --git a/res/layout/main_buttons.xml b/res/layout/main_buttons.xml
index d83632c1..3c190cca 100644
--- a/res/layout/main_buttons.xml
+++ b/res/layout/main_buttons.xml
@@ -60,10 +60,36 @@
android:text="@string/main.albums_title"
style="@style/MainAlbumButtonLabel"/>
- <TextView
+ <LinearLayout
android:id="@+id/main_albums_newest"
- android:text="@string/main.albums_newest"
- style="@style/MainAlbumButton"/>
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="46dip">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:text="@string/main.albums_newest"
+ style="@style/MainAlbumButton"/>
+
+ <TextView
+ android:id="@+id/main_albums_recent_count"
+ android:layout_width="32dp"
+ android:layout_height="32dp"
+ android:layout_marginRight="12dp"
+ android:background="@drawable/ic_number_border"
+ android:focusable="false"
+ android:paddingRight="10dp"
+ android:layout_marginLeft="20px"
+ android:layout_marginBottom="4px"
+ android:text="99"
+ android:textAppearance="?android:attr/textAppearanceSmallPopupMenu"
+ android:textSize="11sp"
+ android:gravity="right|center_vertical"
+ android:layout_gravity="center_vertical"
+ android:visibility="gone"/>
+ </LinearLayout>
+
<TextView
android:id="@+id/main_albums_recent"
android:text="@string/main.albums_recent"