From ead6e21b361b09c1dfbb762503bd52a6dc6e0239 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Mon, 16 Nov 2009 13:53:12 -0500 Subject: Clean up live wallpaper picker list. Author information is no longer shown (ultimately not meaningful information). LWs can add an attribution to their descriptions if necessary. Note that the preferred geometry of a LW thumbnail image is now square. (This allows for more descriptive text, and is also easier for the author to get right.) Bug: http://b/2261754 --- res/layout/live_wallpaper_entry.xml | 19 ++++++++++++------- res/values/dimensions.xml | 4 ++-- .../livepicker/LiveWallpaperListActivity.java | 9 ++------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/res/layout/live_wallpaper_entry.xml b/res/layout/live_wallpaper_entry.xml index ce48242..529371e 100644 --- a/res/layout/live_wallpaper_entry.xml +++ b/res/layout/live_wallpaper_entry.xml @@ -14,12 +14,15 @@ limitations under the License. --> - + android:scaleType="centerCrop" /> @@ -64,4 +69,4 @@ - + diff --git a/res/values/dimensions.xml b/res/values/dimensions.xml index 080a55a..d0ee3a6 100644 --- a/res/values/dimensions.xml +++ b/res/values/dimensions.xml @@ -20,6 +20,6 @@ 14dip 12dip - 100dip - 79dip + 75dip + 75dip diff --git a/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java b/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java index 06ca937..44abac9 100644 --- a/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java +++ b/src/com/android/wallpaper/livepicker/LiveWallpaperListActivity.java @@ -220,13 +220,8 @@ public class LiveWallpaperListActivity extends ListActivity implements AdapterVi WallpaperInfo info = mWallpaperInfos.get(position); holder.thumbnail.setImageDrawable(mThumbnails.get(position)); - try { - CharSequence author = info.loadAuthor(mPackageManager); - holder.titleAuthor.setText(getString(R.string.wallpaper_title_and_author, - info.loadLabel(mPackageManager), author)); - } catch (Resources.NotFoundException e) { - holder.titleAuthor.setText(info.loadLabel(mPackageManager)); - } + // author not currently used + holder.titleAuthor.setText(info.loadLabel(mPackageManager)); holder.description.setText(Html.fromHtml( info.loadDescription(mPackageManager).toString())); -- cgit v1.2.3