summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRohit Yengisetty <rohit@cyngn.com>2014-10-15 11:55:34 -0700
committerlinus_lee <llee@cyngn.com>2014-11-20 12:51:33 -0800
commit1e851f783ff02a5120b490f735cdf3f033ea5516 (patch)
tree1bc8eddd24af7d7a721572beb56145eb180cedaf
parent6ccb596a95b7edf36601bc517580e2eba625f29a (diff)
downloadandroid_packages_apps_Eleven-1e851f783ff02a5120b490f735cdf3f033ea5516.tar.gz
android_packages_apps_Eleven-1e851f783ff02a5120b490f735cdf3f033ea5516.tar.bz2
android_packages_apps_Eleven-1e851f783ff02a5120b490f735cdf3f033ea5516.zip
Eleven : Changes to Album Detail page
* increase margin on line 2 with stopwatch icon * increase the margins to the left and right of Song list (in line with Phase 2 look) https://cyanogen.atlassian.net/browse/MUSIC-101 https://cyanogen.atlassian.net/browse/MUSIC-102 Change-Id: I5a81ff31fb47166f982ba6139643dcc5b0b7c2b3
-rw-r--r--res/layout/activity_album_detail.xml10
-rw-r--r--res/layout/album_detail_song.xml7
-rw-r--r--res/values/dimens.xml1
3 files changed, 11 insertions, 7 deletions
diff --git a/res/layout/activity_album_detail.xml b/res/layout/activity_album_detail.xml
index 26b3ad6..dff83e2 100644
--- a/res/layout/activity_album_detail.xml
+++ b/res/layout/activity_album_detail.xml
@@ -54,7 +54,8 @@
android:fontFamily="sans-serif-light"
android:textSize="@dimen/text_size_micro"
android:textColor="@color/default_text_color"
- android:visibility="gone" />
+ android:visibility="gone"
+ android:layout_marginTop="4dp" />
<ImageView
android:id="@+id/duration_icon"
@@ -62,7 +63,7 @@
android:layout_height="12dp"
android:layout_below="@id/song_count_and_year"
android:layout_toRightOf="@id/genre"
- android:layout_marginTop="2dp"
+ android:layout_marginTop="6dp"
android:layout_marginRight="4dp"
android:gravity="center"
android:src="@drawable/stopwatch_icon_small_grey" />
@@ -76,7 +77,8 @@
android:singleLine="true"
android:fontFamily="sans-serif-light"
android:textSize="@dimen/text_size_micro"
- android:textColor="@color/default_text_color" />
+ android:textColor="@color/default_text_color"
+ android:layout_marginTop="4dp" />
</RelativeLayout>
<include
@@ -90,4 +92,4 @@
android:layout_alignParentLeft="true"
android:divider="@null"
android:dividerHeight="0dp" />
-</RelativeLayout> \ No newline at end of file
+</RelativeLayout>
diff --git a/res/layout/album_detail_song.xml b/res/layout/album_detail_song.xml
index e40d842..f3c660e 100644
--- a/res/layout/album_detail_song.xml
+++ b/res/layout/album_detail_song.xml
@@ -9,7 +9,8 @@
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:gravity="center_vertical"
- android:orientation="horizontal">
+ android:orientation="horizontal"
+ android:layout_marginRight="@dimen/list_item_general_margin" >
<ImageView
android:id="@+id/now_playing"
android:layout_width="wrap_content"
@@ -35,7 +36,7 @@
android:layout_toLeftOf="@id/right_container"
android:paddingTop="6dp"
android:layout_marginTop="@dimen/list_preferred_item_padding"
- android:layout_marginLeft="@dimen/list_preferred_item_padding" />
+ android:layout_marginLeft="@dimen/list_item_general_margin" />
<TextView
android:id="@+id/duration"
@@ -46,7 +47,7 @@
android:layout_alignParentLeft="true"
android:layout_toLeftOf="@id/right_container"
android:layout_marginTop="-2dp"
- android:layout_marginLeft="@dimen/standard_padding" />
+ android:layout_marginLeft="@dimen/list_item_general_margin" />
<ImageView
android:id="@+id/divider"
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index cebcaa9..82aea64 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -34,6 +34,7 @@
<!-- List and grid view padding -->
<dimen name="list_preferred_item_padding">10.0dip</dimen>
<dimen name="list_menu_item_padding_right">2.0dip</dimen>
+ <dimen name="list_item_general_margin">16.0dip</dimen>
<dimen name="list_item_menu_button_width">24.0dip</dimen>
<dimen name="list_item_menu_button_height">30.0dip</dimen>
<dimen name="list_item_padding_top">10.0dip</dimen>