Fix buttons out of screen in SSL warning dialogs for small screens in landspace
authorDavid A. Velasco <dvelasco@solidgear.es>
Fri, 7 Mar 2014 13:54:04 +0000 (14:54 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 7 Mar 2014 13:54:04 +0000 (14:54 +0100)
res/layout/ssl_untrusted_cert_layout.xml

index e64099a..debb331 100644 (file)
@@ -27,6 +27,7 @@
                android:id="@+id/untrusted_header"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
+               android:layout_weight="0"
                android:text="@string/ssl_validator_header"
                android:padding="5dp"
                android:textAppearance="?android:attr/textAppearanceMedium"
@@ -36,6 +37,7 @@
                android:id="@+id/untrusted_reason_cert_not_trusted"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
+               android:layout_weight="0"
                android:layout_gravity="left"
                android:paddingLeft="20dp"
                android:text="@string/ssl_validator_reason_cert_not_trusted"
@@ -47,7 +49,9 @@
         android:visibility="gone" 
        android:padding="20dp"
         android:layout_width="match_parent"
-        android:layout_height="180dp">
+        android:layout_height="0dp"
+        android:layout_weight="1"
+        >
         
                <LinearLayout 
                android:id="@+id/untrusted_details_view"
         android:id="@+id/untrusted_question"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
+               android:layout_weight="0"
                android:padding="5dp"
         android:text="@string/ssl_validator_question"
         android:textAppearance="?android:attr/textAppearanceMedium"
        <LinearLayout
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
+               android:layout_weight="0"
         android:gravity="center" >
 
         <Button