summaryrefslogtreecommitdiffstats
path: root/res/layout/uninstall_progress.xml
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2011-01-10 11:38:08 -0800
committerKenny Root <kroot@google.com>2011-01-10 13:20:54 -0800
commit9fb403beef24339913ce0e0d545a83fd102caf5b (patch)
treee6a9577741abab68644dae439f5386b552f9fa30 /res/layout/uninstall_progress.xml
parent2244205c4fdda49f0ff6f2e16f4cbb6678e20c48 (diff)
downloadandroid_packages_apps_PackageInstaller-9fb403beef24339913ce0e0d545a83fd102caf5b.tar.gz
android_packages_apps_PackageInstaller-9fb403beef24339913ce0e0d545a83fd102caf5b.tar.bz2
android_packages_apps_PackageInstaller-9fb403beef24339913ce0e0d545a83fd102caf5b.zip
Change theme to DialogWhenLarge
Fix some layouts to correctly display as dialogs when using a large screen device. Still needs the WeightedLinearLayout trick. Bug: 3298362 Change-Id: I76ad192ca8c27a0d9f4ce106dc4e1e922c01c02b
Diffstat (limited to 'res/layout/uninstall_progress.xml')
-rwxr-xr-xres/layout/uninstall_progress.xml89
1 files changed, 53 insertions, 36 deletions
diff --git a/res/layout/uninstall_progress.xml b/res/layout/uninstall_progress.xml
index 86204e30..394d1fd3 100755
--- a/res/layout/uninstall_progress.xml
+++ b/res/layout/uninstall_progress.xml
@@ -14,62 +14,79 @@
limitations under the License.
-->
-<ScrollView
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fillViewport="true" >
- <RelativeLayout
- android:orientation="vertical"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ style="@style/padded"
android:layout_width="match_parent"
- android:layout_height="match_parent">
- <include
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical">
+ <include
layout="@layout/app_details"
android:id="@+id/app_snippet"/>
- <TextView
+ <TextView
android:id="@+id/center_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
+ android:paddingTop="16dip"
+ android:paddingLeft="16dip"
+ android:paddingBottom="16dip"
android:textAppearance="?android:attr/textAppearanceMedium" />
- <ProgressBar
+ <ProgressBar
android:id="@+id/progress_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="24dip"
- android:layout_below="@id/center_text"
+ android:paddingLeft="16dip"
+ android:paddingRight="16dip"
android:max="100" />
- <!-- Button bar with OK button -->
- <LinearLayout android:id="@+id/ok_panel"
+ <!-- Button bar with OK button -->
+ <LinearLayout android:id="@+id/ok_panel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
- android:orientation="horizontal"
- style="@android:style/ButtonBar"
- >
- <!-- Left spacer -->
- <View
- android:layout_width="0dip"
- android:layout_height="match_parent"
- android:layout_weight="1"
- />
+ android:minHeight="54dip"
+ android:orientation="vertical"
+ android:divider="?android:attr/dividerHorizontal"
+ android:showDividers="beginning"
+ android:dividerPadding="16dip"
+ android:paddingTop="16dip">
- <Button android:id="@+id/ok_button"
- android:layout_width="0dip"
+ <LinearLayout
+ style="?android:attr/buttonBarStyle"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_weight="2"
- android:text="@string/ok"
- />
+ android:orientation="horizontal"
+ android:paddingLeft="2dip"
+ android:paddingRight="2dip"
+ android:measureWithLargestChild="true">
+
+ <LinearLayout android:id="@+id/leftSpacer"
+ android:layout_weight="0.5"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:visibility="gone" />
+
+ <Button android:id="@+id/ok_button"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_horizontal"
+ android:layout_weight="1"
+ android:text="@string/ok"
+ android:maxLines="2"
+ style="?android:attr/buttonBarButtonStyle" />
+
+ <LinearLayout android:id="@+id/rightSpacer"
+ android:layout_width="0dip"
+ android:layout_weight="0.5"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:visibility="gone" />
- <!-- Right spacer -->
- <View
- android:layout_width="0dip"
- android:layout_height="match_parent"
- android:layout_weight="1"
- />
</LinearLayout>
- </RelativeLayout>
-</ScrollView>
+ </LinearLayout>
+</LinearLayout>