浏览代码

Fixed form gravity in login view, in landscape

David A. Velasco 12 年之前
父节点
当前提交
b8fbf38c56
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      res/layout-land/account_setup.xml

+ 4 - 5
res/layout-land/account_setup.xml

@@ -20,9 +20,7 @@
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:gravity="center|fill" 
 	android:padding="8dip"
-    android:focusable="true"
     >
 
     <LinearLayout
@@ -42,8 +40,7 @@
 			android:src="@drawable/logo" 
 			/>
 		
-		<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
-		    xmlns:tools="http://schemas.android.com/tools"
+		<ScrollView
 		    android:layout_width="0dp"
 		    android:layout_height="match_parent"
 			android:layout_weight="1"
@@ -58,7 +55,9 @@
 				android:layout_height="wrap_content"
 				android:layout_gravity="center"
 				android:layout_margin="8dp"
-				android:orientation="vertical" 
+				android:gravity="center"
+				android:orientation="vertical"
+				android:focusable="true" 
 				>
 		
 				<EditText