Index: chrome/android/java/res/layout/data_reduction_promo_screen.xml |
diff --git a/chrome/android/java/res/layout/data_reduction_promo_screen.xml b/chrome/android/java/res/layout/data_reduction_promo_screen.xml |
index d0fe45f7a86f06c1d53a087196f5e997a22f8dc7..bbe9785fd4e3b1d3f9e3cf806d620bd69ac5d361 100644 |
--- a/chrome/android/java/res/layout/data_reduction_promo_screen.xml |
+++ b/chrome/android/java/res/layout/data_reduction_promo_screen.xml |
@@ -35,18 +35,18 @@ |
android:layout_height="wrap_content" |
android:layout_width="match_parent" |
android:layout_below="@+id/close_button" |
- android:layout_marginTop="8dp" |
+ android:layout_marginTop="16dp" |
android:orientation="vertical" |
android:paddingEnd="24dp" |
android:paddingStart="24dp" > |
<ImageView |
android:layout_height="wrap_content" |
- android:layout_width="match_parent" |
- android:layout_marginBottom="24dp" |
+ android:layout_width="wrap_content" |
+ android:layout_gravity="center_horizontal" |
+ android:layout_marginBottom="30dp" |
android:adjustViewBounds="true" |
android:contentDescription="@null" |
- android:gravity="center" |
android:src="@drawable/data_reduction_illustration" /> |
<TextView |
@@ -73,27 +73,32 @@ |
android:layout_below="@id/data_reduction_promo_text" |
android:padding="16dp" |
newt (away)
2015/09/03 23:11:23
move the padding and clipToPadding attributes to t
megjablon
2015/09/04 00:06:45
Done.
|
android:clipToPadding="false" |
- android:gravity="end|bottom" |
- android:orientation="horizontal" > |
- <org.chromium.ui.widget.ButtonCompat |
- android:id="@+id/no_thanks_button" |
- android:layout_height="wrap_content" |
- android:layout_width="wrap_content" |
- android:layout_marginEnd="8dp" |
- android:minHeight="40dp" |
- android:text="@string/no_thanks" |
- android:textColor="@color/light_normal_color" |
- android:textSize="@dimen/data_reduction_promo_button_text_size" |
- chrome:buttonColor="#FFFFFF" /> |
- <org.chromium.ui.widget.ButtonCompat |
- android:id="@+id/enable_button" |
+ android:gravity="end|bottom" > |
newt (away)
2015/09/03 23:11:23
remove "end" since it has no effect.
megjablon
2015/09/04 00:06:45
Done.
|
+ <LinearLayout |
newt (away)
2015/09/03 18:07:44
Why the nested LinearLayout? You should be able to
megjablon
2015/09/03 18:47:53
The first linear layout has to have layout_below s
newt (away)
2015/09/03 23:11:23
Ah. Right. I played with this a bit. Seems like wh
megjablon
2015/09/04 00:06:45
Done.
|
android:layout_height="wrap_content" |
- android:layout_width="wrap_content" |
- android:minHeight="40dp" |
- android:text="@string/data_reduction_enable_button" |
- android:textColor="#FFFFFF" |
- android:textSize="@dimen/data_reduction_promo_button_text_size" |
- chrome:buttonColor="@color/light_active_color" /> |
+ android:layout_width="match_parent" |
+ android:gravity="end|bottom" |
newt (away)
2015/09/03 23:11:23
remove "bottom" since it has no effect
megjablon
2015/09/04 00:06:45
Done.
|
+ android:orientation="horizontal" > |
+ <org.chromium.ui.widget.ButtonCompat |
+ android:id="@+id/no_thanks_button" |
+ android:layout_height="match_parent" |
+ android:layout_width="wrap_content" |
+ android:layout_marginEnd="8dp" |
newt (away)
2015/09/03 23:43:46
Also add layout_weight="1" to each of the buttons.
megjablon
2015/09/04 00:06:45
Done.
|
+ android:minHeight="40dp" |
+ android:text="@string/no_thanks" |
+ android:textColor="@color/light_normal_color" |
+ android:textSize="@dimen/data_reduction_promo_button_text_size" |
+ chrome:buttonColor="#FFFFFF" /> |
+ <org.chromium.ui.widget.ButtonCompat |
+ android:id="@+id/enable_button" |
+ android:layout_height="wrap_content" |
newt (away)
2015/09/03 18:07:44
This should be match_parent too, in case the first
megjablon
2015/09/03 18:47:53
Done.
|
+ android:layout_width="wrap_content" |
+ android:minHeight="40dp" |
+ android:text="@string/data_reduction_enable_button" |
+ android:textColor="#FFFFFF" |
+ android:textSize="@dimen/data_reduction_promo_button_text_size" |
+ chrome:buttonColor="@color/light_active_color" /> |
+ </LinearLayout> |
</LinearLayout> |
</RelativeLayout> |
</ScrollView> |