From f938403d9e5caa290a22600a54c99a75d1043294 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期四, 06 四月 2017 10:12:28 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml | 436 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 403 insertions(+), 33 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml index 1c0e761..a1b326f 100644 --- a/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml +++ b/VisitFace/DemoForBsk/app/src/main/res/layout/fragment_visit_right.xml @@ -4,21 +4,21 @@ android:layout_height="match_parent" xmlns:fresco="http://schemas.android.com/apk/res-auto"> <LinearLayout - android:id="@+id/visitor_manager_top_ll" + android:id="@+id/fragment_visit_right_linear_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_marginTop="20dp" android:orientation="horizontal"> <com.facebook.drawee.view.SimpleDraweeView - android:id="@+id/visitor_manager_avatar" + android:id="@+id/fragment_visit_right_head_photo" android:layout_width="197dp" android:layout_height="197dp" android:background="@android:color/black" fresco:placeholderImageScaleType="fitXY" /> <com.facebook.drawee.view.SimpleDraweeView - android:id="@+id/visitor_manager_card" + android:id="@+id/fragment_visit_right_card_photo" android:layout_width="330dp" android:layout_height="210dp" fresco:placeholderImageScaleType="fitXY" @@ -33,11 +33,10 @@ <ScrollView android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_alignStart="@id/visitor_manager_top_ll" - android:layout_alignEnd="@id/visitor_manager_top_ll" - android:layout_below="@id/visitor_manager_top_ll" + android:layout_alignStart="@id/fragment_visit_right_linear_layout" + android:layout_alignEnd="@id/fragment_visit_right_linear_layout" + android:layout_below="@id/fragment_visit_right_linear_layout" android:layout_marginTop="15dp"> - <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" @@ -50,30 +49,236 @@ android:textSize="@dimen/text_size_big" android:textStyle="bold" android:text="@string/base_information"/> - - <cn.com.basic.face.widget.visit.VisitRightFormRow + <LinearLayout + android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> - <!--<include layout="@layout/fragment_visit_right_form_row_left" + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_width="wrap_content"/> - <include layout="@layout/fragment_visit_right_form_row_right"/>--> - </cn.com.basic.face.widget.visit.VisitRightFormRow> -<!-- - <include layout="@layout/fragment_visit_right_form_row1"> - <include layout="@layout/fragment_visit_right_form_row_left" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="濮撳悕" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="鐢佃瘽" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_phone" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_width="wrap_content"/> - <include layout="@layout/fragment_visit_right_form_row_right"/> - </include>--> - <include layout="@layout/fragment_visit_right_form_row" - android:id="@+id/visitor_manager_row1"/> - <include layout="@layout/fragment_visit_right_form_row" - android:id="@+id/visitor_manager_row2"/> - <include layout="@layout/fragment_visit_right_form_row" - android:id="@+id/visitor_manager_row3"/> - <include layout="@layout/fragment_visit_right_form_row" - android:id="@+id/visitor_manager_row4"/> + android:orientation="horizontal"> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="鎬у埆" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_gender" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="璇佷欢绫诲瀷" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="鍥界睄" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_country" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="璇佷欢缂栧彿" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_id_num" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="鍑虹敓鏃ユ湡" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_birthday" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="鍏徃鍚嶇О" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_company" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -82,12 +287,177 @@ android:textStyle="bold" android:layout_marginTop="28dp" android:text="@string/visitor_information"/> - <include layout="@layout/fragment_visit_right_form_row" - android:id="@+id/visitor_manager_row5"/> - <include layout="@layout/fragment_visit_right_form_row" - android:id="@+id/visitor_manager_row6"/> - <include layout="@layout/fragment_visit_right_form_row" - android:id="@+id/visitor_manager_row7"/> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="鎷滆浜�" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_person" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="鎷滆浜嬫儏" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_visit_reason" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="鏉ヨ閮ㄩ棬" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_from_dept" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="璁块棶鐘舵��" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_status" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + <LinearLayout + android:paddingTop="13dp" + android:paddingBottom="13dp" + android:gravity="center_horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="鏉ヨ鏃堕棿" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_visit_time" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + <LinearLayout + android:layout_width="298dp" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="绂诲紑鏃堕棿" + android:textColor="@color/colorText_5"/> + <TextView + android:id="@+id/fragment_visit_right_exit_time" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_big" + android:text="" + android:textColor="@color/colorText_b" + android:background="@null"/> + </LinearLayout> + </LinearLayout> + <View + android:layout_width="match_parent" + android:layout_height="@dimen/view_size_1" + android:background="@color/colorText_b" + android:layout_marginLeft="5dp"/> + </LinearLayout> </LinearLayout> </ScrollView> </RelativeLayout> \ No newline at end of file -- Gitblit v1.8.0