OSDN Git Service

Make emergency button right size
authorPaul Lawrence <paullawrence@google.com>
Tue, 28 Oct 2014 18:32:42 +0000 (11:32 -0700)
committerPaul Lawrence <paullawrence@google.com>
Tue, 28 Oct 2014 19:01:18 +0000 (19:01 +0000)
Bug: 18123894
Bug: 17394128
Change-Id: I248890b82f62146e1814172fd8b67e9a39661997

res/layout/crypt_keeper_emergency_button.xml

index d0004de..0b6f810 100644 (file)
 
 <!-- Emergency call button.
      Text is set by CryptKeeper.updateEmergencyCallButtonState() -->
-<Button
+<LinearLayout
     xmlns:android="http://schemas.android.com/apk/res/android"
-    android:id="@+id/emergencyCallButton"
-    android:layout_width="wrap_content"
+    android:layout_width="match_parent"
     android:layout_height="0dp"
-    android:layout_gravity="center_horizontal"
-    android:textSize="14sp"
-    android:fontFamily="sans-serif"
-    android:textColor="#FFFFFF"
     android:layout_weight="1"
-    android:gravity="bottom"
-    style="?android:attr/borderlessButtonStyle" />
+    android:orientation="vertical"
+    android:gravity="bottom">
+    <Button
+        android:id="@+id/emergencyCallButton"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center_horizontal"
+        android:textSize="14sp"
+        android:fontFamily="sans-serif"
+        android:textColor="#FFFFFF"
+        style="?android:attr/borderlessButtonStyle" />
+
+</LinearLayout>