From b01459997ed4d0232855e4dbc080bd1238e1256d Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Wed, 24 Jun 2015 14:53:57 -0400 Subject: [PATCH] Fix marquee on app snippet in InstalledAppDetails First need to fix layout of the app_item as the widget was running over the end of the view, do this by switching to a RelativeLayout. Then select the view so it can actually marquee. Bug: 22043942 Change-Id: Ieb94649ccf3dc8dcf56014c02fcdc06da71a9a62 --- res/layout/app_item.xml | 23 ++++++++++++------- .../applications/InstalledAppDetails.java | 1 + 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/res/layout/app_item.xml b/res/layout/app_item.xml index 26f2b1e065e..c5a73afdbfb 100644 --- a/res/layout/app_item.xml +++ b/res/layout/app_item.xml @@ -14,12 +14,13 @@ limitations under the License. --> - - + diff --git a/src/com/android/settings/applications/InstalledAppDetails.java b/src/com/android/settings/applications/InstalledAppDetails.java index e78c69785a7..a2757432be5 100755 --- a/src/com/android/settings/applications/InstalledAppDetails.java +++ b/src/com/android/settings/applications/InstalledAppDetails.java @@ -763,6 +763,7 @@ public class InstalledAppDetails extends AppInfoBase TextView appVersion = (TextView) appSnippet.findViewById(R.id.widget_text1); if (!TextUtils.isEmpty(versionName)) { + appVersion.setSelected(true); appVersion.setVisibility(View.VISIBLE); appVersion.setText(appSnippet.getContext().getString(R.string.version_text, String.valueOf(versionName)));