diff options
author | linus_lee <llee@cyngn.com> | 2014-08-18 16:45:24 -0700 |
---|---|---|
committer | linus_lee <llee@cyngn.com> | 2014-11-20 11:58:03 -0800 |
commit | b9634c9a2682f5b4f791b95b7ea22bdc73c4364b (patch) | |
tree | 0d74d00f56fd270dd9a1a1f3a26c10d4c3e0e63f /res | |
parent | 2c923c5e40ed6326b4770e6393e5830420619071 (diff) | |
download | android_packages_apps_Eleven-b9634c9a2682f5b4f791b95b7ea22bdc73c4364b.tar.gz android_packages_apps_Eleven-b9634c9a2682f5b4f791b95b7ea22bdc73c4364b.tar.bz2 android_packages_apps_Eleven-b9634c9a2682f5b4f791b95b7ea22bdc73c4364b.zip |
Eleven: Add Section Headers
This implements section headers for the song/album/artist fragments for each of the sort types
including dates, numbers, durations, alphabetical etc. The ui will need to be tweaked to look
better, but that is pending UX. There is a bug with localization (like Chinese songs)
where we could create a valid section header but from an alphabetical it doesn't look correct.
I will look at this afer this big check-in
Change-Id: Ibfc09bb12ebf61c668f135358f65f1e7947bac79
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/list_header.xml | 2 | ||||
-rw-r--r-- | res/values/strings.xml | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/res/layout/list_header.xml b/res/layout/list_header.xml index 3742e37..c4f2fa7 100644 --- a/res/layout/list_header.xml +++ b/res/layout/list_header.xml @@ -15,11 +15,11 @@ limitations under the License. --> <TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/header" android:layout_width="match_parent" android:layout_height="32.0dip" android:background="@null" android:gravity="center_vertical" android:paddingLeft="10.0dip" - android:textAllCaps="true" android:textColor="@color/white" android:textSize="@dimen/text_size_medium" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index 6af9c37..0635eb3 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -170,4 +170,25 @@ <string name="empty_favorite">Songs you mark as favorites will be shown here.</string> <string name="empty_recent">Albums you have listened to will show up here. Try playing some music.</string> + <!-- Section Headers --> + <string name="header_unknown_year">Unknown Year</string> + <string name="header_less_than_30s">Less than 30s</string> + <string name="header_30_to_60_seconds">30 - 60 seconds</string> + <string name="header_1_to_2_minutes">1 - 2 minutes</string> + <string name="header_2_to_3_minutes">2 - 3 minutes</string> + <string name="header_3_to_4_minutes">3 - 4 minutes</string> + <string name="header_4_to_5_minutes">4 - 5 minutes</string> + <string name="header_5_to_10_minutes">5 - 10 minutes</string> + <string name="header_10_to_30_minutes">10 - 30 minutes</string> + <string name="header_30_to_60_minutes">30 - 60 minutes</string> + <string name="header_greater_than_60_minutes">More than 60 minutes</string> + + <string name="header_1_song">1 Song</string> + <string name="header_2_to_4_songs">2 - 4 Songs</string> + <string name="header_5_to_9_songs">5 - 9 Songs</string> + <string name="header_10_plus_songs">10+ Songs</string> + + <string name="header_1_album">1 Album</string> + <string name="header_n_albums"><xliff:g id="number">%d</xliff:g> Albums</string> + <string name="header_5_plus_albums">5+ Albums</string> </resources> |