From 717bcb657c22156cb99468ae1649c55ac20d15dd Mon Sep 17 00:00:00 2001 From: Guo_shaoshan <2055829622@qq.com> Date: 星期二, 04 四月 2023 14:10:41 +0800 Subject: [PATCH] 成长经历界面 --- app/src/main/res/layout/item_family_create.xml | 398 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 198 insertions(+), 200 deletions(-) diff --git a/app/src/main/res/layout/item_family_create.xml b/app/src/main/res/layout/item_family_create.xml index 5793d06..e43ff34 100644 --- a/app/src/main/res/layout/item_family_create.xml +++ b/app/src/main/res/layout/item_family_create.xml @@ -5,11 +5,8 @@ <data> <variable - name="CreateFamilyActivityViewModel" + name="viewModel" type="com.application.zhangshi_app_android.ui.function.CreateFamilyProjectActivityViewModel" /> - <variable - name="myclick" - type="com.application.zhangshi_app_android.ui.function.CreateFamilyProjectActivity.Myclick"/> </data> <LinearLayout @@ -18,224 +15,225 @@ android:layout_height="match_parent" android:orientation="vertical"> - <com.hjq.bar.TitleBar android:id="@+id/titleBar" android:layout_width="match_parent" - android:layout_height="@dimen/dp_55" - android:background="@color/color_title_bar_background" - android:paddingHorizontal="@dimen/dp_16" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" + android:layout_height="?attr/actionBarSize" app:layout_constraintTop_toTopOf="parent" + android:paddingHorizontal="0dp" + android:background="@color/color_title_bar_background" app:leftIcon="@null" - app:rightIcon="@null"> - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="start|center_vertical" - android:orientation="horizontal"> - + app:rightIcon="@null" + > + <ImageView + android:id="@+id/iv_menu" + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_marginHorizontal="16dp" + android:background="@drawable/ic_menu" + android:layout_gravity="center_vertical" + /> + <FrameLayout + android:layout_width="24dp" + android:layout_height="24dp" + android:layout_marginHorizontal="16dp" + android:layout_gravity="center_vertical|end" + > <ImageView - android:id="@+id/menu" - android:layout_width="@dimen/dp_24" - android:layout_height="@dimen/dp_24" - android:layout_gravity="center" - android:background="@drawable/ic_menu" /> - - <TextView + android:id="@+id/iv_operate" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/dp_32" - android:text="@string/title_family_create_project" - android:textColor="@color/white" - android:textSize="@dimen/sp_20" /> - - </LinearLayout> + android:layout_gravity="center" + android:background="@drawable/ic_operate" + /> + </FrameLayout> <LinearLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_gravity="end|center_vertical" - android:orientation="horizontal"> - - <ImageView - android:layout_width="@dimen/dp_24" - android:layout_height="@dimen/dp_24" - android:background="@drawable/ic_search" /> - - <ImageView - android:layout_width="@dimen/dp_24" - android:layout_height="@dimen/dp_24" - android:layout_marginStart="@dimen/dp_16" - android:background="@drawable/ic_operate" /> - + android:id="@+id/layout_default" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginHorizontal="56dp" + android:gravity="center_vertical" + > + <TextView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginStart="16dp" + android:text="寮犳皬APP绔嬮」" + android:layout_weight="1" + android:textColor="@color/white" + android:textSize="@dimen/sp_20" + /> </LinearLayout> + </com.hjq.bar.TitleBar> - <LinearLayout + <ScrollView android:layout_width="match_parent" - android:layout_height="match_parent" - android:orientation="vertical" - app:layout_constraintTop_toBottomOf="@id/titleBar" > - <TextView - android:id="@+id/textview_sequence" - android:layout_width="@dimen/dp_320" - android:layout_marginHorizontal="@dimen/dp_20" - android:layout_marginTop="@dimen/dp_10" - android:layout_height="@dimen/dp_20" - android:text="搴忓彿" - android:textColor="#ff000000" - android:textSize="@dimen/sp_12" - /> - - - <EditText - android:id="@+id/editTextsequence" - android:layout_width="@dimen/dp_320" - android:layout_height="@dimen/dp_30" - android:layout_marginTop="@dimen/dp_2" - android:layout_marginHorizontal="@dimen/dp_20" - android:hint="璇疯緭鍏ュ簭鍙�" - android:inputType="number" - android:autofillHints="creditCardNumber" - android:textColor="#6b000000" - android:textSize="@dimen/sp_16" /> - - <TextView - android:id="@+id/textview_time" - android:layout_width="@dimen/dp_320" - android:layout_marginHorizontal="@dimen/dp_20" - android:layout_marginTop="@dimen/dp_10" - android:layout_height="@dimen/dp_20" - android:text="鏃堕棿" - android:textColor="#ff000000" - android:textSize="@dimen/sp_12" - /> - - <EditText - android:id="@+id/editTextTime" - android:layout_width="@dimen/dp_320" - android:layout_height="@dimen/dp_30" - android:layout_marginTop="@dimen/dp_2" - android:layout_marginHorizontal="@dimen/dp_20" - android:hint="璇疯緭鍏ユ椂闂�" - android:inputType="number" - android:textColor="#6b000000" - android:textSize="@dimen/sp_16" /> - <TextView - android:id="@+id/textview_figure_1" - android:layout_width="@dimen/dp_320" - android:layout_marginHorizontal="@dimen/dp_20" - android:layout_marginTop="@dimen/dp_10" - android:layout_height="@dimen/dp_20" - android:text="浜虹墿" - android:textColor="#ff000000" - android:textSize="@dimen/sp_12" - /> - - - <EditText - android:id="@+id/editTextFigure1" - android:layout_width="@dimen/dp_320" - android:layout_height="@dimen/dp_30" - android:layout_marginTop="@dimen/dp_2" - android:layout_marginHorizontal="@dimen/dp_20" - android:hint="璇疯緭鍏ヤ汉鐗�" - android:inputType="number" - android:textColor="#6b000000" - android:textSize="@dimen/sp_16" /> - <TextView - android:id="@+id/textview_spot" - android:layout_width="@dimen/dp_320" - android:layout_marginHorizontal="@dimen/dp_20" - android:layout_marginTop="@dimen/dp_10" - android:layout_height="@dimen/dp_20" - android:text="鍦扮偣" - android:textColor="#ff000000" - android:textSize="@dimen/sp_12" - /> - - - <EditText - android:id="@+id/editTextSpot" - android:layout_width="@dimen/dp_320" - android:layout_height="@dimen/dp_30" - android:layout_marginTop="@dimen/dp_2" - android:layout_marginHorizontal="@dimen/dp_20" - android:hint="璇疯緭鍏ュ湴鐐�" - android:inputType="number" - android:textColor="#6b000000" - android:textSize="@dimen/sp_16" /> - <TextView - android:id="@+id/textview_figure_2" - android:layout_width="@dimen/dp_320" - android:layout_marginHorizontal="@dimen/dp_20" - android:layout_marginTop="@dimen/dp_10" - android:layout_height="@dimen/dp_20" - android:text="浜虹墿" - android:textColor="#ff000000" - android:textSize="@dimen/sp_12" - /> - - - <EditText - android:id="@+id/editTextFigure2" - android:layout_width="@dimen/dp_320" - android:layout_height="@dimen/dp_30" - android:layout_marginTop="@dimen/dp_2" - android:layout_marginHorizontal="@dimen/dp_20" - android:hint="璇疯緭鍏ヤ汉鐗�" - android:inputType="number" - android:textColor="#6b000000" - android:textSize="@dimen/sp_16" /> - <TextView - android:id="@+id/textview_elecfile" - android:layout_width="@dimen/dp_320" - android:layout_marginHorizontal="@dimen/dp_20" - android:layout_marginTop="@dimen/dp_10" - android:layout_height="@dimen/dp_20" - android:text="鐢靛瓙鏂囦欢" - android:textColor="#ff000000" - android:textSize="@dimen/sp_12" - /> + android:layout_height="wrap_content" + app:layout_constraintTop_toBottomOf="@id/titleBar" + > <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" android:orientation="vertical" - android:layout_width="@dimen/dp_320" - android:layout_height="@dimen/dp_180" - android:layout_marginTop="@dimen/dp_2" - android:layout_marginHorizontal="@dimen/dp_20" - android:background="@drawable/shape_6b0000_stroke" - android:textColor="#6b000000" - android:textSize="@dimen/sp_16"> - - <Button - android:id="@+id/button_add" - android:layout_width="@dimen/dp_85" - android:layout_height="@dimen/dp_85" - android:text="+" - android:textColor="@color/black" - android:textSize="@dimen/dp_35" - android:gravity="center" - android:layout_marginLeft="@dimen/dp_10" - android:layout_marginTop="@dimen/dp_10" - app:srcCompat="@drawable/shape_73fab4cd_solid" - android:background="@drawable/shape_73fab4cd_solid" - android:onClick="@{myclick.onClick}" - /> - + android:paddingHorizontal="20dp" + > <TextView + android:id="@+id/textview_sequence" android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="瀵煎叆" - android:textColor="#6b000000" + android:layout_marginTop="@dimen/dp_10" + android:layout_height="@dimen/dp_20" + android:text="鏍囬" + android:textColor="#ff000000" android:textSize="@dimen/sp_12" - android:layout_marginLeft="@dimen/dp_40" /> + + <EditText + android:id="@+id/editTextsequence" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="璇疯緭鍏ユ爣棰�" + android:inputType="number" + android:autofillHints="creditCardNumber" + android:textColorHint="#6b000000" + android:textColor="#DE000000" + android:textSize="@dimen/sp_16" + android:text="@={viewModel.beanMutableLiveData.title}" + /> + + <TextView + android:id="@+id/textview_time" + android:layout_width="wrap_content" + android:layout_marginTop="@dimen/dp_10" + android:layout_height="wrap_content" + android:text="鏃堕棿" + android:textColor="#ff000000" + android:textSize="@dimen/sp_12" + /> + + <EditText + android:id="@+id/editTextTime" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/dp_2" + android:hint="璇疯緭鍏ユ椂闂�" + android:inputType="number" + android:textColorHint="#6b000000" + android:textColor="#DE000000" + android:text="@={viewModel.beanMutableLiveData.createTime}" + android:textSize="@dimen/sp_16" /> + <TextView + android:id="@+id/textview_figure_1" + android:layout_width="wrap_content" + android:layout_marginTop="@dimen/dp_10" + android:layout_height="wrap_content" + android:text="浜虹墿" + android:textColor="#ff000000" + android:textSize="@dimen/sp_12" + /> + + + <EditText + android:id="@+id/editTextFigure1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/dp_2" + android:hint="璇疯緭鍏ヤ汉鐗�" + android:inputType="number" + android:textColorHint="#6b000000" + android:text="@={viewModel.beanMutableLiveData.people}" + android:textColor="#DE000000" + android:textSize="@dimen/sp_16" /> + <TextView + android:id="@+id/textview_spot" + android:layout_width="wrap_content" + android:layout_marginTop="@dimen/dp_10" + android:layout_height="@dimen/dp_20" + android:text="鍦扮偣" + android:textColor="#ff000000" + android:textSize="@dimen/sp_12" + /> + + + <EditText + android:id="@+id/editTextSpot" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/dp_2" + android:hint="璇疯緭鍏ュ湴鐐�" + android:inputType="number" + android:textColorHint="#6b000000" + android:textColor="#DE000000" + android:text="@={viewModel.beanMutableLiveData.address}" + android:textSize="@dimen/sp_16" /> + <TextView + android:id="@+id/textview_figure_2" + android:layout_width="wrap_content" + android:layout_marginTop="@dimen/dp_10" + android:layout_height="wrap_content" + android:text="澶囨敞" + android:textColor="#ff000000" + android:textSize="@dimen/sp_12" + /> + + + <EditText + android:id="@+id/editTextFigure2" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/dp_2" + android:hint="璇疯緭鍏ュ娉�" + android:inputType="number" + android:textColorHint="#6b000000" + android:textColor="#DE000000" + android:text="@={viewModel.beanMutableLiveData.remark}" + android:textSize="@dimen/sp_16" /> + <TextView + android:id="@+id/textview_elecfile" + android:layout_width="wrap_content" + android:layout_marginTop="@dimen/dp_10" + android:layout_height="wrap_content" + android:text="鐢靛瓙鏂囦欢" + android:textColor="#ff000000" + android:textSize="@dimen/sp_12" + /> + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="@dimen/dp_180" + android:layout_marginTop="@dimen/dp_2" + android:background="@drawable/shape_6b0000_stroke" + android:layout_marginBottom="10dp" + > + + <Button + android:id="@+id/button_add" + android:layout_width="@dimen/dp_85" + android:layout_height="@dimen/dp_85" + android:text="+" + android:textColor="@color/black" + android:textSize="@dimen/dp_35" + android:gravity="center" + android:layout_marginLeft="@dimen/dp_10" + android:layout_marginTop="@dimen/dp_10" + android:background="@drawable/shape_73fab4cd_solid" + /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="瀵煎叆" + android:textColorHint="#6b000000" + android:textColor="#DE000000" + android:textSize="@dimen/sp_12" + android:layout_marginLeft="@dimen/dp_40" + /> + + </LinearLayout> </LinearLayout> - </LinearLayout> + </ScrollView> </LinearLayout> -- Gitblit v1.9.1