Ray Zhang 10 سال پیش
والد
کامیت
f4964ba167
2فایلهای تغییر یافته به همراه34 افزوده شده و 19 حذف شده
  1. 1 2
      RedAnt Photo/res/layout/activity_main1.xml
  2. 33 17
      RedAnt Photo/res/layout/activity_service_setting.xml

+ 1 - 2
RedAnt Photo/res/layout/activity_main1.xml

@@ -101,8 +101,7 @@
         android:layout_width="290dp"
         android:layout_height="wrap_content"
         android:layout_alignParentTop="true"
-        android:layout_alignRight="@+id/ivThumbs"
-        android:layout_marginRight="5dp"
+        android:layout_alignRight="@+id/rlside"
         android:layout_marginTop="5dp"
         android:ellipsize="marquee"
         android:singleLine="true"

+ 33 - 17
RedAnt Photo/res/layout/activity_service_setting.xml

@@ -8,13 +8,41 @@
     android:paddingTop="@dimen/activity_vertical_margin"
     tools:context="com.usai.redant.photo.ServerSettingActivity" >
 
+    <TextView
+        android:id="@+id/tv_name"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="Name"
+        android:textAppearance="?android:attr/textAppearanceMedium" 
+        />
+
+    <EditText
+        android:id="@+id/et_name"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_alignBaseline="@+id/tv_name"
+        android:layout_toRightOf="@+id/tv_name"
+        android:ems="10" 
+        android:singleLine="true" >
+
+        <requestFocus />
+    </EditText>
+
+    <ImageButton
+        android:id="@+id/ibtn_scan"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_centerHorizontal="true"
+        android:layout_centerVertical="true"
+        android:src="@drawable/bar2" />
+
     <RadioGroup
         android:id="@+id/radioGroup1"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_alignParentLeft="true"
-        android:layout_alignParentTop="true"
-        android:layout_marginTop="3dp" >
+        android:layout_alignLeft="@+id/tv_name"
+        android:layout_below="@+id/tv_name"
+        android:layout_marginTop="10dp" >
 
         <RadioButton
             android:id="@+id/radio0"
@@ -28,10 +56,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:ems="10"
-            android:singleLine="true">
-
-            <requestFocus />
-        </EditText>
+            android:singleLine="true" />
 
         <RadioButton
             android:id="@+id/radio1"
@@ -47,16 +72,7 @@
             android:layout_alignLeft="@+id/radioGroup1"
             android:layout_below="@+id/radioGroup1"
             android:ems="10"
-            android:singleLine="true" >
-        </EditText>
+            android:singleLine="true" />
     </RadioGroup>
 
-    <ImageButton
-        android:id="@+id/ibtn_scan"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_centerHorizontal="true"
-        android:layout_centerVertical="true"
-        android:src="@drawable/bar2" />
-
 </RelativeLayout>