From 109ffe9a777658936a38d0c146579a67c60a0d17 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 11 五月 2017 17:48:48 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml | 134 +++++++++++++++++++++++--------------------- 1 files changed, 69 insertions(+), 65 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml index 0552236..ff569af 100644 --- a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_register.xml @@ -16,40 +16,41 @@ android:orientation="vertical"> <RelativeLayout android:layout_width="match_parent" - android:layout_height="50dp"> + android:layout_height="@dimen/h50dp"> <TextView android:id="@+id/fragment_register_back" android:layout_width="wrap_content" android:layout_height="match_parent" android:text="< 浜哄憳娉ㄥ唽" - android:layout_marginLeft="10dp" + android:layout_marginLeft="@dimen/w10dp" android:gravity="center_vertical" android:layout_centerVertical="true" android:textColor="#8BD2F6" + android:textSize="@dimen/w14dp" /> <LinearLayout android:layout_width="match_parent" android:gravity="right" - android:layout_marginTop="10dp" + android:layout_marginTop="@dimen/h10dp" android:orientation="horizontal" android:layout_alignParentBottom="true" - android:layout_height="40dp"> + android:layout_height="@dimen/h40dp"> <TextView android:id="@+id/fragment_register_add" - android:layout_width="40dp" - android:layout_height="36dp" + android:layout_width="@dimen/w40dp" + android:layout_height="@dimen/h36dp" android:gravity="center" - android:layout_marginLeft="10dp" + android:layout_marginLeft="@dimen/w10dp" android:textColor="@android:color/white" android:background="@drawable/u249" android:text=""/> <TextView android:id="@+id/fragment_register_save" - android:layout_width="40dp" - android:layout_height="36dp" + android:layout_width="@dimen/w40dp" + android:layout_height="@dimen/h36dp" android:gravity="center" - android:layout_marginLeft="10dp" - android:layout_marginRight="10dp" + android:layout_marginLeft="@dimen/w10dp" + android:layout_marginRight="@dimen/h10dp" android:textColor="@android:color/white" android:background="@drawable/u208" android:text=""/> @@ -58,7 +59,7 @@ <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="10dp" + android:layout_marginTop="@dimen/h10dp" android:gravity="center_horizontal" android:orientation="horizontal"> <LinearLayout @@ -68,29 +69,32 @@ > <ImageView android:id="@+id/fragment_register_surveillance_photo" - android:layout_width="147dp" - android:layout_height="206dp" + android:layout_width="@dimen/w197dp" + android:layout_height="@dimen/h206dp" android:background="#07000000" android:gravity="center" + android:adjustViewBounds="true" /> <ImageView android:id="@+id/fragment_register_upload_custom_photo" - android:layout_width="147dp" - android:layout_height="206dp" + android:layout_width="@dimen/w197dp" + android:layout_height="@dimen/h206dp" android:background="#07000000" android:text="鐐瑰嚮涓婁紶鐓х墖" - android:layout_marginLeft="44dp" - android:layout_marginRight="56dp" - android:textSize="@dimen/text_size_normal" + android:layout_marginLeft="@dimen/w10dp" + android:layout_marginRight="@dimen/w10dp" + android:textSize="@dimen/w14dp" android:textColor="@android:color/white" android:gravity="center" + android:adjustViewBounds="true" /> <ImageView android:id="@+id/fragment_register_id_card_photo" - android:layout_width="330dp" - android:layout_height="206dp" - android:background="@null" - android:padding="55dp" + android:layout_width="@dimen/w330dp" + android:layout_height="@dimen/h206dp" + android:background="#07000000" + android:padding="0dp" + android:adjustViewBounds="true" /> </LinearLayout> <LinearLayout @@ -100,37 +104,37 @@ > <ImageView android:id="@+id/fragment_register_surveillance_photo_placeholder_image" - android:layout_width="147dp" - android:layout_height="206dp" + android:layout_width="@dimen/w197dp" + android:layout_height="@dimen/h206dp" android:alpha="0.35" android:src="@drawable/u45" - android:paddingLeft="10dp" - android:paddingRight="10dp" - android:paddingTop="70dp" + android:paddingLeft="@dimen/w10dp" + android:paddingRight="@dimen/w10dp" + android:paddingTop="@dimen/h70dp" /> <ImageView android:id="@+id/fragment_register_upload_custom_photo_placeholder_image" - android:layout_width="147dp" - android:layout_height="206dp" + android:layout_width="@dimen/w197dp" + android:layout_height="@dimen/h206dp" android:alpha="0.35" android:text="鐐瑰嚮涓婁紶鐓х墖" - android:layout_marginLeft="44dp" - android:layout_marginRight="56dp" - android:textSize="@dimen/text_size_normal" + android:layout_marginLeft="@dimen/w10dp" + android:layout_marginRight="@dimen/w10dp" + android:textSize="@dimen/w14dp" android:textColor="@android:color/white" android:gravity="center" android:src="@drawable/u45" - android:paddingLeft="10dp" - android:paddingRight="10dp" - android:paddingTop="70dp" + android:paddingLeft="@dimen/w10dp" + android:paddingRight="@dimen/w10dp" + android:paddingTop="@dimen/h70dp" /> <ImageView android:id="@+id/fragment_register_id_card_photo_placeholder_image" - android:layout_width="330dp" - android:layout_height="206dp" - android:background="#07000000" + android:layout_width="@dimen/w330dp" + android:layout_height="@dimen/h206dp" + android:alpha="0.35" android:src="@drawable/u117" - android:padding="55dp" + android:padding="@dimen/w55dp" /> </LinearLayout> <LinearLayout @@ -140,32 +144,32 @@ > <TextView android:id="@+id/fragment_register_surveillance_photo_placeholder_text_view" - android:layout_width="147dp" - android:layout_height="206dp" + android:layout_width="@dimen/w197dp" + android:layout_height="@dimen/h206dp" android:gravity="center" android:text="閫夋嫨\n浜虹墿鐓х墖" android:background="#00000000" - android:textSize="@dimen/text_size_big" - android:paddingTop="70dp" + android:textSize="@dimen/w16dp" + android:paddingTop="@dimen/h70dp" /> <TextView android:id="@+id/fragment_register_upload_custom_photo_placeholder_text_view" - android:layout_width="147dp" - android:layout_height="206dp" + android:layout_width="@dimen/w197dp" + android:layout_height="@dimen/h206dp" android:background="#00000000" android:text="鐐瑰嚮\n涓婁紶鐓х墖" - android:layout_marginLeft="44dp" - android:layout_marginRight="56dp" - android:textSize="@dimen/text_size_big" + android:layout_marginLeft="@dimen/w10dp" + android:layout_marginRight="@dimen/w10dp" + android:textSize="@dimen/w16dp" android:gravity="center" - android:paddingTop="70dp" + android:paddingTop="@dimen/h70dp" /> <TextView android:id="@+id/fragment_register_id_card_photo_placeholder_text_view" - android:layout_width="330dp" - android:layout_height="206dp" + android:layout_width="@dimen/w330dp" + android:layout_height="@dimen/h206dp" android:background="#00000000" - android:textSize="@dimen/text_size_navigation" + android:textSize="@dimen/w20dp" android:text="璇佷欢蹇収" android:gravity="center|center_vertical" android:layout_gravity="center_vertical" @@ -175,7 +179,7 @@ <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="20dp" + android:layout_marginTop="@dimen/h20dp" android:layout_gravity="center_horizontal" android:orientation="horizontal"> <LinearLayout @@ -185,67 +189,67 @@ <cn.com.basic.face.widget.register.RegisterRightFieldTextView android:id="@+id/fragment_register_name" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_name" /> <cn.com.basic.face.widget.register.RegisterRightFieldLabelView android:id="@+id/fragment_register_gender" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_sex" /> <cn.com.basic.face.widget.register.RegisterRightFieldLabelView android:id="@+id/fragment_register_country" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_nation" /> <cn.com.basic.face.widget.register.RegisterRightFieldLabelView android:id="@+id/fragment_register_birthday" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_birthday" /> <cn.com.basic.face.widget.register.RegisterRightFieldLabelView android:id="@+id/fragment_register_visitor_class" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_visitorClass" /> </LinearLayout> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="122dp" + android:layout_marginLeft="@dimen/w122dp" android:orientation="vertical"> <cn.com.basic.face.widget.register.RegisterRightFieldTextView android:id="@+id/fragment_register_phone" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_phone" /> <cn.com.basic.face.widget.register.RegisterRightFieldLabelView android:id="@+id/fragment_register_id_class" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_idClass" /> <cn.com.basic.face.widget.register.RegisterRightFieldTextView android:id="@+id/fragment_register_id_num" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_idNumber" /> <cn.com.basic.face.widget.register.RegisterRightFieldTextView android:id="@+id/fragment_register_company" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_companyName" /> <cn.com.basic.face.widget.register.RegisterRightFieldTextView android:id="@+id/fragment_register_remark" android:layout_height="wrap_content" - android:layout_width="278dp" + android:layout_width="@dimen/w311dp" register:label="@string/title_remark" /> </LinearLayout> -- Gitblit v1.8.0