diff options
author | Kenny Root <kroot@google.com> | 2011-06-23 03:47:56 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2011-06-23 04:04:22 -0700 |
commit | 8cdde96c39af256e62da0340187234046b2af5ab (patch) | |
tree | 942fd1b139f9e925f65a6a4f58e0fa38f17a120a /res/layout/op_progress.xml | |
parent | 37d68303e770a3f8b3327317008a031357f5ed69 (diff) | |
download | android_packages_apps_PackageInstaller-8cdde96c39af256e62da0340187234046b2af5ab.tar.gz android_packages_apps_PackageInstaller-8cdde96c39af256e62da0340187234046b2af5ab.tar.bz2 android_packages_apps_PackageInstaller-8cdde96c39af256e62da0340187234046b2af5ab.zip |
Fix layouts some more
Bug: 4770335
Change-Id: Iceef40eb1bf01457d715a21a5ebef942de484195
Diffstat (limited to 'res/layout/op_progress.xml')
-rwxr-xr-x | res/layout/op_progress.xml | 93 |
1 files changed, 53 insertions, 40 deletions
diff --git a/res/layout/op_progress.xml b/res/layout/op_progress.xml index 4e8f9b1f..dde1e82e 100755 --- a/res/layout/op_progress.xml +++ b/res/layout/op_progress.xml @@ -14,47 +14,11 @@ limitations under the License. --> -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_weight="1" + android:layout_height="match_parent" android:orientation="vertical"> - <include - layout="@layout/app_details" - android:id="@+id/app_snippet"/> - <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:textAppearance="?android:attr/textAppearanceMedium"/> - <TextView - android:id="@+id/center_explanation" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_centerHorizontal="true" - android:layout_centerVertical="true" - android:visibility="gone" - android:paddingTop="8dip" - android:paddingLeft="16dip" - android:paddingBottom="16dip" - android:textAppearance="?android:attr/textAppearanceSmall"/> - - <ProgressBar - android:id="@+id/progress_bar" - style="?android:attr/progressBarStyleHorizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:paddingTop="24dip" - android:paddingLeft="16dip" - android:paddingRight="16dip" - android:max="100" /> - - <!-- Launch and close buttons. --> + <!-- Launch and close buttons. --> <LinearLayout android:id="@+id/buttons_panel" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -109,6 +73,55 @@ </LinearLayout> </LinearLayout> -</LinearLayout> + + <include + layout="@layout/app_details" + android:id="@+id/app_snippet" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" /> + + <TextView + android:id="@+id/center_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/app_snippet" + android:gravity="center_horizontal" + android:text="@string/installing" + android:paddingTop="16dip" + android:paddingLeft="16dip" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <!-- This explanation text is shown only after the progress bar below goes away. --> + <ScrollView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_above="@id/buttons_panel" + android:layout_below="@id/center_text" + android:paddingTop="8dip" + android:paddingLeft="16dip" + android:paddingBottom="16dip"> + <TextView + android:id="@+id/center_explanation" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_horizontal" + android:visibility="gone" + android:textAppearance="?android:attr/textAppearanceSmall"/> + </ScrollView> + + <!-- This progress bar goes away when the explanation above is displayed. --> + <ProgressBar + android:id="@+id/progress_bar" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/center_text" + android:paddingTop="24dip" + android:paddingLeft="16dip" + android:paddingRight="16dip" + android:max="100" /> + +</RelativeLayout> |