|
|
@@ -2,8 +2,7 @@
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:whatever="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- >
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
|
|
<ScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -22,8 +21,8 @@
|
|
|
|
|
|
<RelativeLayout
|
|
|
style="@style/IMTbleLine2"
|
|
|
- android:minHeight="40dp"
|
|
|
- android:background="@color/white">
|
|
|
+ android:background="@color/white"
|
|
|
+ android:minHeight="40dp">
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/name_tv"
|
|
|
@@ -33,10 +32,22 @@
|
|
|
android:textColor="@color/text_main"
|
|
|
android:textSize="15sp" />
|
|
|
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignTop="@id/name_tv"
|
|
|
+ android:layout_toRightOf="@id/name_tv"
|
|
|
+ android:text="*"
|
|
|
+ android:textColor="@color/red" />
|
|
|
+
|
|
|
<com.andreabaccega.widget.FormEditText
|
|
|
android:id="@+id/reimbursement_title_fet"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_alignBaseline="@+id/name_tv"
|
|
|
+ android:layout_alignBottom="@+id/name_tv"
|
|
|
+ android:layout_alignParentEnd="true"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
android:background="@null"
|
|
|
android:gravity="center_vertical|right"
|
|
|
android:hint="@string/common_input"
|
|
|
@@ -46,11 +57,7 @@
|
|
|
android:textSize="15sp"
|
|
|
whatever:customRegexp="^[A-Za-z\u4e00-\u9fa5]{1,30}+$"
|
|
|
whatever:testErrorString="限制30个之内有效中英文字符"
|
|
|
- whatever:testType="regexp"
|
|
|
- android:layout_alignBaseline="@+id/name_tv"
|
|
|
- android:layout_alignBottom="@+id/name_tv"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- android:layout_alignParentEnd="true" />
|
|
|
+ whatever:testType="regexp" />
|
|
|
</RelativeLayout>
|
|
|
|
|
|
<View
|
|
|
@@ -70,21 +77,27 @@
|
|
|
android:text="@string/Reimbursement_type"
|
|
|
android:textColor="@color/text_main"
|
|
|
android:textSize="15sp" />
|
|
|
-
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignTop="@id/type_left"
|
|
|
+ android:layout_toRightOf="@id/type_left"
|
|
|
+ android:text="*"
|
|
|
+ android:textColor="@color/red" />
|
|
|
<com.andreabaccega.widget.FormEditText xmlns:editTextFormExample="http://schemas.android.com/apk/res-auto"
|
|
|
- android:layout_toRightOf="@+id/type_left"
|
|
|
android:id="@+id/reimbursement_type_fet"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_alignParentRight="true"
|
|
|
+ android:layout_toRightOf="@+id/type_left"
|
|
|
android:background="@null"
|
|
|
+ android:ellipsize="end"
|
|
|
android:gravity="center_vertical|right"
|
|
|
android:hint="@string/common_select"
|
|
|
android:padding="10dp"
|
|
|
- android:textColor="@color/dark_dark_grey"
|
|
|
- android:textSize="15sp"
|
|
|
android:singleLine="true"
|
|
|
- android:ellipsize="end"/>
|
|
|
+ android:textColor="@color/dark_dark_grey"
|
|
|
+ android:textSize="15sp" />
|
|
|
|
|
|
<ImageView
|
|
|
style="@style/IMTbleLine_ArrowImg"
|
|
|
@@ -106,12 +119,19 @@
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
+ android:id="@+id/reimbursement_type"
|
|
|
style="@style/form_relative_left_text"
|
|
|
android:layout_marginLeft="0dp"
|
|
|
android:text="@string/currency"
|
|
|
android:textColor="@color/text_main"
|
|
|
android:textSize="15sp" />
|
|
|
-
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignTop="@id/reimbursement_type"
|
|
|
+ android:layout_toRightOf="@id/reimbursement_type"
|
|
|
+ android:text="*"
|
|
|
+ android:textColor="@color/red" />
|
|
|
<com.andreabaccega.widget.FormEditText xmlns:editTextFormExample="http://schemas.android.com/apk/res-auto"
|
|
|
android:id="@+id/reimbursement_currency_fet"
|
|
|
android:layout_width="100dp"
|
|
|
@@ -121,9 +141,9 @@
|
|
|
android:background="@null"
|
|
|
android:gravity="center_vertical|right"
|
|
|
android:padding="10dp"
|
|
|
+ android:text="RMB"
|
|
|
android:textColor="@color/dark_dark_grey"
|
|
|
- android:textSize="15sp"
|
|
|
- android:text="RMB"/>
|
|
|
+ android:textSize="15sp" />
|
|
|
|
|
|
<ImageView
|
|
|
style="@style/IMTbleLine_ArrowImg"
|
|
|
@@ -143,27 +163,26 @@
|
|
|
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- >
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/Consumer_details"
|
|
|
- android:textColor="@color/text_main"
|
|
|
android:layout_marginLeft="10dp"
|
|
|
- android:layout_marginTop="10dp"/>
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:text="@string/Consumer_details"
|
|
|
+ android:textColor="@color/text_main" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/add_details_tv"
|
|
|
android:layout_width="100dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_alignParentRight="true"
|
|
|
- android:text="@string/new_add"
|
|
|
- android:textColor="@color/blue"
|
|
|
- android:padding="10dp"
|
|
|
android:layout_marginRight="5dp"
|
|
|
- android:gravity="right"/>
|
|
|
+ android:gravity="right"
|
|
|
+ android:padding="10dp"
|
|
|
+ android:text="@string/new_add"
|
|
|
+ android:textColor="@color/blue" />
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
|
@@ -171,58 +190,60 @@
|
|
|
android:id="@+id/detail_table_ll"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
android:layout_alignParentLeft="true"
|
|
|
- android:layout_alignParentStart="true">
|
|
|
+ android:layout_alignParentStart="true"
|
|
|
+ android:layout_alignParentTop="true"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/detail_table_top_ll"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:orientation="vertical"
|
|
|
android:layout_marginLeft="10dp"
|
|
|
- android:layout_marginRight="10dp">
|
|
|
- <View
|
|
|
- style="@style/expense_table_h_1dp"/>
|
|
|
+ android:layout_marginRight="10dp"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <View style="@style/expense_table_h_1dp" />
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="horizontal">
|
|
|
- <View
|
|
|
- style="@style/expense_table_v_1dp"/>
|
|
|
+
|
|
|
+ <View style="@style/expense_table_v_1dp" />
|
|
|
+
|
|
|
<TextView
|
|
|
- android:text="@string/type"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
android:layout_weight="2"
|
|
|
android:paddingLeft="10dp"
|
|
|
- android:layout_gravity="center_vertical"/>
|
|
|
- <View
|
|
|
- style="@style/expense_table_v_1dp"/>
|
|
|
+ android:text="@string/type" />
|
|
|
+
|
|
|
+ <View style="@style/expense_table_v_1dp" />
|
|
|
+
|
|
|
<TextView
|
|
|
- android:text="@string/Amount_of_money"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
android:layout_weight="2"
|
|
|
android:paddingLeft="10dp"
|
|
|
- android:layout_gravity="center_vertical"
|
|
|
- />
|
|
|
- <View
|
|
|
- style="@style/expense_table_v_1dp"/>
|
|
|
+ android:text="@string/Amount_of_money" />
|
|
|
+
|
|
|
+ <View style="@style/expense_table_v_1dp" />
|
|
|
+
|
|
|
<TextView
|
|
|
- android:text="@string/common_delete"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_weight="1"
|
|
|
android:layout_gravity="center_vertical"
|
|
|
- android:gravity="center"/>
|
|
|
- <View
|
|
|
- style="@style/expense_table_v_1dp"
|
|
|
- />
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/common_delete" />
|
|
|
+
|
|
|
+ <View style="@style/expense_table_v_1dp" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <View
|
|
|
- style="@style/expense_table_h_1dp"/>
|
|
|
+ <View style="@style/expense_table_h_1dp" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
<com.core.widget.MyListView
|
|
|
@@ -230,9 +251,8 @@
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginLeft="10dp"
|
|
|
- android:layout_marginRight="10dp"
|
|
|
- >
|
|
|
- </com.core.widget.MyListView>
|
|
|
+ android:layout_marginRight="10dp"></com.core.widget.MyListView>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/detail_table_bottom_ll"
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -240,75 +260,80 @@
|
|
|
android:layout_marginLeft="10dp"
|
|
|
android:layout_marginRight="10dp"
|
|
|
android:orientation="vertical">
|
|
|
+
|
|
|
<RelativeLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
<View
|
|
|
android:id="@+id/left_view_v"
|
|
|
- style="@style/expense_table_v_1dp"/>
|
|
|
+ style="@style/expense_table_v_1dp" />
|
|
|
|
|
|
<View
|
|
|
android:id="@+id/right_view_v"
|
|
|
- android:layout_alignParentRight="true"
|
|
|
- style="@style/expense_table_v_1dp"/>
|
|
|
+ style="@style/expense_table_v_1dp"
|
|
|
+ android:layout_alignParentRight="true" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/automatic_calculation_tv"
|
|
|
- android:layout_toRightOf="@id/left_view_v"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="自动计算"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_marginLeft="10dp"
|
|
|
+ android:layout_toRightOf="@id/left_view_v"
|
|
|
+ android:text="自动计算"
|
|
|
android:textColor="@color/blue"
|
|
|
- android:visibility="gone"/>
|
|
|
+ android:visibility="gone" />
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/i_calculation_tv"
|
|
|
- android:layout_toRightOf="@id/automatic_calculation_tv"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/calculator_name"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_marginLeft="10dp"
|
|
|
+ android:layout_toRightOf="@id/automatic_calculation_tv"
|
|
|
+ android:text="@string/calculator_name"
|
|
|
android:textColor="@color/blue"
|
|
|
- android:visibility="gone"
|
|
|
- />
|
|
|
+ android:visibility="gone" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:id="@+id/sum_money_tv"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_toLeftOf="@+id/right_view_v"
|
|
|
android:layout_alignParentRight="true"
|
|
|
- android:layout_marginRight="30dp"
|
|
|
android:layout_centerVertical="true"
|
|
|
- android:textColor="@color/red"/>
|
|
|
+ android:layout_marginRight="30dp"
|
|
|
+ android:layout_toLeftOf="@+id/right_view_v"
|
|
|
+ android:textColor="@color/red" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/all_Amount_of_money"
|
|
|
- android:layout_toLeftOf="@+id/sum_money_tv"
|
|
|
android:layout_centerVertical="true"
|
|
|
android:layout_marginRight="10dp"
|
|
|
- android:textColor="@color/text_main"/>
|
|
|
+ android:layout_toLeftOf="@+id/sum_money_tv"
|
|
|
+ android:text="@string/all_Amount_of_money"
|
|
|
+ android:textColor="@color/text_main" />
|
|
|
</RelativeLayout>
|
|
|
- <View
|
|
|
- style="@style/expense_table_h_1dp"/>
|
|
|
+
|
|
|
+ <View style="@style/expense_table_h_1dp" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<View
|
|
|
- android:layout_marginTop="10dp"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="20px"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
android:background="@color/item_line" />
|
|
|
+
|
|
|
<TextView
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:text="@string/Add_invoice"
|
|
|
- android:textColor="@color/text_main"
|
|
|
android:layout_marginLeft="10dp"
|
|
|
- android:layout_marginTop="10dp"/>
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:text="@string/Add_invoice"
|
|
|
+ android:textColor="@color/text_main" />
|
|
|
|
|
|
<LinearLayout
|
|
|
android:id="@+id/select_img_layout"
|
|
|
@@ -328,6 +353,7 @@
|
|
|
android:stretchMode="columnWidth"
|
|
|
android:verticalSpacing="3dp" />
|
|
|
</LinearLayout>
|
|
|
+
|
|
|
<LinearLayout
|
|
|
android:id="@+id/bottom_layout"
|
|
|
android:layout_width="match_parent"
|