diff options
author | Kenny Root <kroot@google.com> | 2011-01-10 11:38:08 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2011-01-10 13:20:54 -0800 |
commit | 9fb403beef24339913ce0e0d545a83fd102caf5b (patch) | |
tree | e6a9577741abab68644dae439f5386b552f9fa30 /res/layout/op_progress.xml | |
parent | 2244205c4fdda49f0ff6f2e16f4cbb6678e20c48 (diff) | |
download | android_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/op_progress.xml')
-rwxr-xr-x | res/layout/op_progress.xml | 87 |
1 files changed, 59 insertions, 28 deletions
diff --git a/res/layout/op_progress.xml b/res/layout/op_progress.xml index 9fe2d0be..3b410523 100755 --- a/res/layout/op_progress.xml +++ b/res/layout/op_progress.xml @@ -14,27 +14,27 @@ 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 +<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="match_parent" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:text="@string/installing" + 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" @@ -42,32 +42,63 @@ android:paddingTop="24dip" android:paddingLeft="16dip" android:paddingRight="16dip" - android:layout_below="@id/center_text" android:max="100" /> - <!-- Launch and close buttons. --> - <LinearLayout android:id="@+id/buttons_panel" + <!-- Launch and close buttons. --> + <LinearLayout android:id="@+id/buttons_panel" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" - android:orientation="horizontal" - style="@android:style/ButtonBar" - > - <Button android:id="@+id/launch_button" - android:layout_width="0dip" + android:minHeight="54dip" + android:orientation="vertical" + android:divider="?android:attr/dividerHorizontal" + android:showDividers="beginning" + android:dividerPadding="16dip" + android:paddingTop="16dip"> + + <LinearLayout + style="?android:attr/buttonBarStyle" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_weight="1" - android:text="@string/launch" - /> + android:orientation="horizontal" + android:paddingLeft="2dip" + android:paddingRight="2dip" + android:measureWithLargestChild="true"> + + <LinearLayout android:id="@+id/leftSpacer" + android:layout_weight="0.25" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="gone" /> + + <Button android:id="@+id/launch_button" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_gravity="left" + android:layout_weight="1" + android:text="@string/launch" + android:maxLines="2" + style="?android:attr/buttonBarButtonStyle" /> <Button android:id="@+id/done_button" - android:layout_width="0dip" - android:layout_height="wrap_content" - android:layout_weight="1" - android:text="@string/done" - /> + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_gravity="right" + android:layout_weight="1" + android:text="@string/done" + android:maxLines="2" + style="?android:attr/buttonBarButtonStyle" /> + + <LinearLayout android:id="@+id/rightSpacer" + android:layout_width="0dip" + android:layout_weight="0.25" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="gone" /> + </LinearLayout> - </RelativeLayout> -</ScrollView> + </LinearLayout> +</LinearLayout> |