diff options
| author | Bobby Georgescu <georgescu@google.com> | 2013-03-15 14:38:04 -0700 |
|---|---|---|
| committer | Bobby Georgescu <georgescu@google.com> | 2013-03-15 15:49:11 -0700 |
| commit | d9928654036e0a9fd43fcc186f8c66537dabe28a (patch) | |
| tree | c188218aa68b54766b5f19f57f3f6ce33a76ca99 /res/layout | |
| parent | 091314b7ea73e774ce96c981bd7007c94ad80e30 (diff) | |
| download | android_packages_apps_Gallery2-d9928654036e0a9fd43fcc186f8c66537dabe28a.tar.gz android_packages_apps_Gallery2-d9928654036e0a9fd43fcc186f8c66537dabe28a.tar.bz2 android_packages_apps_Gallery2-d9928654036e0a9fd43fcc186f8c66537dabe28a.zip | |
Improve AlbumSet UI in new gallery
Change-Id: I31cbf7cf8c0c7b5f5f3413a59ad94142b13870d2
Diffstat (limited to 'res/layout')
| -rw-r--r-- | res/layout/album_set.xml | 8 | ||||
| -rw-r--r-- | res/layout/album_set_item.xml | 57 |
2 files changed, 32 insertions, 33 deletions
diff --git a/res/layout/album_set.xml b/res/layout/album_set.xml index 5ff1d23ff..5e2e84868 100644 --- a/res/layout/album_set.xml +++ b/res/layout/album_set.xml @@ -12,9 +12,11 @@ android:columnWidth="@dimen/album_set_item_width" android:stretchMode="columnWidth" android:drawSelectorOnTop="true" - android:padding="10dp" - android:horizontalSpacing="10dp" - android:verticalSpacing="10dp" /> + android:background="#E5E5E5" + android:paddingLeft="10dp" + android:paddingRight="10dp" + android:horizontalSpacing="6dp" + android:verticalSpacing="6dp" /> <TextView android:id="@id/android:empty" diff --git a/res/layout/album_set_item.xml b/res/layout/album_set_item.xml index bdecd5fd1..ad0e0db20 100644 --- a/res/layout/album_set_item.xml +++ b/res/layout/album_set_item.xml @@ -1,42 +1,39 @@ <?xml version="1.0" encoding="utf-8"?> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="wrap_content" android:layout_width="match_parent" - android:background="#FFF" > + android:orientation="vertical" + android:background="?android:attr/activatedBackgroundIndicator" + android:padding="2dp" > - <TextView - android:id="@+id/album_set_item_title" - android:layout_width="wrap_content" + <LinearLayout android:layout_height="wrap_content" - android:layout_alignParentLeft="true" - android:layout_alignParentTop="true" - android:layout_marginLeft="10dp" - android:layout_marginTop="10dp" - android:ellipsize="end" - android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceMedium" /> + android:layout_width="match_parent" + android:orientation="vertical" + android:padding="10dp" + android:background="#FFF" > - <TextView - android:id="@+id/album_set_item_date" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignLeft="@+id/album_set_item_title" - android:layout_below="@+id/album_set_item_title" - android:layout_marginBottom="10dp" - android:textAppearance="?android:attr/textAppearanceSmall" /> + <TextView + android:id="@+id/album_set_item_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <TextView + android:id="@+id/album_set_item_count" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:ellipsize="end" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="#AAA" /> + </LinearLayout> <ImageView android:id="@+id/album_set_item_image" android:layout_width="match_parent" android:layout_height="@dimen/album_set_item_image_height" - android:layout_below="@+id/album_set_item_date" android:scaleType="centerCrop" /> - - <ProgressBar - android:id="@+id/album_set_item_upload_progress" - style="?android:attr/progressBarStyleHorizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:visibility="invisible" - android:layout_alignParentBottom="true" /> -</RelativeLayout>
\ No newline at end of file +</LinearLayout>
\ No newline at end of file |
