summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2013-03-15 22:56:03 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-03-15 22:56:03 +0000
commit14b53b9c942cb78bee775a8d107c16639681af88 (patch)
treeee59d7c06d4db8c871f4f749d94f3564722c3a3b
parentef8adc0fc55e903612e331d0212b6c0664d778d0 (diff)
parent301059e8e1b39fdcdd52d85c7cf93355f68d9ccc (diff)
downloadandroid_packages_apps_Snap-14b53b9c942cb78bee775a8d107c16639681af88.tar.gz
android_packages_apps_Snap-14b53b9c942cb78bee775a8d107c16639681af88.tar.bz2
android_packages_apps_Snap-14b53b9c942cb78bee775a8d107c16639681af88.zip
Merge "Improve AlbumSet UI in new gallery" into gb-ub-photos-bryce
-rw-r--r--res/layout/album_set.xml8
-rw-r--r--res/layout/album_set_item.xml57
-rw-r--r--res/values/dimensions.xml2
-rw-r--r--res/values/strings.xml6
4 files changed, 39 insertions, 34 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
diff --git a/res/values/dimensions.xml b/res/values/dimensions.xml
index 9ef192cb2..aba596f16 100644
--- a/res/values/dimensions.xml
+++ b/res/values/dimensions.xml
@@ -52,6 +52,6 @@
<dimen name="thumbnail_margin">3dip</dimen>
<!-- configuration for album set page -->
- <dimen name="album_set_item_image_height">100dp</dimen>
+ <dimen name="album_set_item_image_height">120dp</dimen>
<dimen name="album_set_item_width">140dp</dimen>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 263b8b15b..6e35bfc14 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1010,4 +1010,10 @@ CHAR LIMIT = NONE] -->
<string name="tab_photos">Photos</string>
<!-- Title for the albums tab [CHAR LIMIT=25] -->
<string name="tab_albums">Albums</string>
+
+ <!-- String indicating how many photos are in an album [CHAR LIMIT=15] -->
+ <plurals name="number_of_photos">
+ <item quantity="one">%1$d photo</item>
+ <item quantity="other">%1$d photos</item>
+ </plurals>
</resources>