diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-08-26 22:14:41 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-08-26 22:14:41 -0700 |
commit | 82cc01b8757663f29ead64b664ac3421ee29cf10 (patch) | |
tree | 5432a9da6c70422c5c783b2310dc1d8a9208ef96 /res/layout | |
parent | 4470fd60a6c28ae3a6b2d35e30baec6834cc7c1d (diff) | |
download | dsub-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
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/main_buttons.xml | 32 |
1 files changed, 29 insertions, 3 deletions
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"
|