diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-06-10 21:37:08 +0530 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2013-06-13 14:53:34 +0200 |
commit | 4b57a42abacac0727a998ca16ab3996af94a1c4a (patch) | |
tree | 458f8db2b534968aefba79b12e77abba9d7152a8 | |
parent | 7dae958adefd8f4a7594a74f8e05f1e3449e6cc6 (diff) | |
download | packages_apps_settings-4b57a42abacac0727a998ca16ab3996af94a1c4a.zip packages_apps_settings-4b57a42abacac0727a998ca16ab3996af94a1c4a.tar.gz packages_apps_settings-4b57a42abacac0727a998ca16ab3996af94a1c4a.tar.bz2 |
Show application's package name in the "App info" screen.
Change-Id: I7dac8ffa0b10abb5ff235750e90a96d801b2f919
-rwxr-xr-x | res/layout/manage_applications_item.xml | 17 | ||||
-rw-r--r-- | src/com/android/settings/applications/InstalledAppDetails.java | 4 |
2 files changed, 19 insertions, 2 deletions
diff --git a/res/layout/manage_applications_item.xml b/res/layout/manage_applications_item.xml index f471f55..6d6f32e 100755 --- a/res/layout/manage_applications_item.xml +++ b/res/layout/manage_applications_item.xml @@ -31,8 +31,9 @@ android:id="@+id/app_icon" android:layout_width="@android:dimen/app_icon_size" android:layout_height="@android:dimen/app_icon_size" - android:layout_rowSpan="2" + android:layout_rowSpan="3" android:layout_marginEnd="8dip" + android:layout_gravity="center_vertical" android:scaleType="centerInside" android:contentDescription="@null" /> @@ -50,12 +51,24 @@ <CheckBox android:id="@+id/app_on_sdcard" android:layout_marginStart="8dip" android:layout_gravity="center_vertical" - android:layout_rowSpan="2" + android:layout_rowSpan="3" android:visibility="gone" android:clickable="false" android:focusable="false" /> <TextView + android:id="@+id/app_pkgname" + android:layout_width="0dip" + android:layout_columnSpan="2" + android:layout_gravity="fill_horizontal" + android:layout_marginTop="2dip" + android:singleLine="true" + android:ellipsize="marquee" + android:visibility="gone" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textAlignment="viewStart" /> + + <TextView android:id="@+id/app_size" android:layout_width="0dip" android:layout_gravity="fill_horizontal" diff --git a/src/com/android/settings/applications/InstalledAppDetails.java b/src/com/android/settings/applications/InstalledAppDetails.java index 75c9485..be515df 100644 --- a/src/com/android/settings/applications/InstalledAppDetails.java +++ b/src/com/android/settings/applications/InstalledAppDetails.java @@ -548,6 +548,10 @@ public class InstalledAppDetails extends Fragment // Set application name. TextView label = (TextView) appSnippet.findViewById(R.id.app_name); label.setText(mAppEntry.label); + // Set application package name. + TextView packageName = (TextView) appSnippet.findViewById(R.id.app_pkgname); + packageName.setText(mAppEntry.info.packageName); + packageName.setVisibility(View.VISIBLE); // Version number of application mAppVersion = (TextView) appSnippet.findViewById(R.id.app_size); |