diff options
author | 2013-04-22 12:23:32 +0900 | |
---|---|---|
committer | 2013-04-22 12:23:32 +0900 | |
commit | 0f07935e5165b33d512d7d594e5fec7a2f210013 (patch) | |
tree | 4b39cdc3ad3b73a2e5e9d3ede2b6404966e421eb /java/res/layout | |
parent | 2a9b5447fa87daa70c45ecf0f038271ed7a92813 (diff) | |
download | latinime-0f07935e5165b33d512d7d594e5fec7a2f210013.tar.gz latinime-0f07935e5165b33d512d7d594e5fec7a2f210013.tar.xz latinime-0f07935e5165b33d512d7d594e5fec7a2f210013.zip |
Centering setup wizard welcome video
Bug: 8159728
Change-Id: Ia016c41dc39b87740ff57efe0e2fadd61f0da129
Diffstat (limited to 'java/res/layout')
-rw-r--r-- | java/res/layout/setup_welcome_video.xml | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/java/res/layout/setup_welcome_video.xml b/java/res/layout/setup_welcome_video.xml index a72fbd72f..3aa4f3ca8 100644 --- a/java/res/layout/setup_welcome_video.xml +++ b/java/res/layout/setup_welcome_video.xml @@ -19,12 +19,26 @@ --> <merge xmlns:android="http://schemas.android.com/apk/res/android"> - <VideoView - android:id="@+id/setup_welcome_video" - android:layout_margin="36dp" - android:layout_width="240dp" - android:layout_height="150dp" - android:layout_centerHorizontal="true" /> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <View + android:layout_weight="@integer/setup_welcome_video_left_padding_weight_in_screen" + android:layout_width="0dp" + android:layout_height="0dp" /> + <VideoView + android:id="@+id/setup_welcome_video" + android:layout_weight="@integer/setup_welcome_video_weight_in_screen" + android:layout_marginTop="24dp" + android:layout_marginBottom="24dp" + android:layout_width="0dp" + android:layout_height="wrap_content" /> + <View + android:layout_weight="@integer/setup_welcome_video_right_padding_weight_in_screen" + android:layout_width="0dp" + android:layout_height="0dp" /> + </LinearLayout> <com.android.inputmethod.latin.setup.SetupStartIndicatorView android:layout_width="match_parent" android:layout_height="wrap_content" /> |