|
@@ -3,6 +3,10 @@
|
|
|
|
|
|
<data>
|
|
<data>
|
|
|
|
|
|
|
|
+ <import type="android.view.View" />
|
|
|
|
+
|
|
|
|
+ <import type="android.text.TextUtils" />
|
|
|
|
+
|
|
<variable
|
|
<variable
|
|
name="viewModel"
|
|
name="viewModel"
|
|
type="com.sjkj.appthreefloor_tsgz.fragment.viewModel.EventFargmentViewModel" />
|
|
type="com.sjkj.appthreefloor_tsgz.fragment.viewModel.EventFargmentViewModel" />
|
|
@@ -29,8 +33,11 @@
|
|
<LinearLayout
|
|
<LinearLayout
|
|
android:id="@+id/ll_title"
|
|
android:id="@+id/ll_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="110dp"
|
|
|
|
- android:layout_margin="15dp"
|
|
|
|
|
|
+ android:layout_height="90dp"
|
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
|
+ android:layout_marginBottom="15dp"
|
|
android:background="@drawable/round_corner_top_letf_right"
|
|
android:background="@drawable/round_corner_top_letf_right"
|
|
android:orientation="vertical">
|
|
android:orientation="vertical">
|
|
|
|
|
|
@@ -57,7 +64,6 @@
|
|
android:gravity="center_vertical">
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
- android:visibility="gone"
|
|
|
|
android:id="@+id/tv_completed"
|
|
android:id="@+id/tv_completed"
|
|
android:layout_width="70dp"
|
|
android:layout_width="70dp"
|
|
android:layout_height="30dp"
|
|
android:layout_height="30dp"
|
|
@@ -65,12 +71,12 @@
|
|
android:background="@drawable/bg_event_completed"
|
|
android:background="@drawable/bg_event_completed"
|
|
android:gravity="center_horizontal|center_vertical"
|
|
android:gravity="center_horizontal|center_vertical"
|
|
android:text="签收"
|
|
android:text="签收"
|
|
- android:textColor="#04BF60">
|
|
|
|
|
|
+ android:textColor="#04BF60"
|
|
|
|
+ android:visibility="gone">
|
|
|
|
|
|
</TextView>
|
|
</TextView>
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
- android:visibility="gone"
|
|
|
|
android:id="@+id/tv_refuse"
|
|
android:id="@+id/tv_refuse"
|
|
android:layout_width="70dp"
|
|
android:layout_width="70dp"
|
|
android:layout_height="30dp"
|
|
android:layout_height="30dp"
|
|
@@ -78,33 +84,35 @@
|
|
android:background="@drawable/bg_event_refuse"
|
|
android:background="@drawable/bg_event_refuse"
|
|
android:gravity="center_horizontal|center_vertical"
|
|
android:gravity="center_horizontal|center_vertical"
|
|
android:text="拒签"
|
|
android:text="拒签"
|
|
- android:textColor="#FD6350">
|
|
|
|
|
|
+ android:textColor="#FD6350"
|
|
|
|
+ android:visibility="gone">
|
|
|
|
|
|
</TextView>
|
|
</TextView>
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
- android:visibility="gone"
|
|
|
|
android:id="@+id/tv_finish"
|
|
android:id="@+id/tv_finish"
|
|
android:layout_width="70dp"
|
|
android:layout_width="70dp"
|
|
android:layout_height="30dp"
|
|
android:layout_height="30dp"
|
|
android:background="@drawable/bg_event_finish"
|
|
android:background="@drawable/bg_event_finish"
|
|
android:gravity="center_horizontal|center_vertical"
|
|
android:gravity="center_horizontal|center_vertical"
|
|
android:text="办结"
|
|
android:text="办结"
|
|
- android:textColor="#EDAC00">
|
|
|
|
|
|
+ android:textColor="#EDAC00"
|
|
|
|
+ android:visibility="gone">
|
|
|
|
|
|
</TextView>
|
|
</TextView>
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
|
|
+ android:id="@+id/tv_time"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:text="@{viewModel.time}"
|
|
|
|
android:layout_height="30dp"
|
|
android:layout_height="30dp"
|
|
- android:gravity="right|center_vertical"
|
|
|
|
|
|
+ android:text="@{viewModel.time}"
|
|
android:textColor="@color/coler_evnet" />
|
|
android:textColor="@color/coler_evnet" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
|
|
|
|
|
+ android:visibility="gone"
|
|
android:id="@+id/ll_head"
|
|
android:id="@+id/ll_head"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp"
|
|
android:layout_height="40dp"
|
|
@@ -153,7 +161,7 @@
|
|
android:layout_below="@+id/ll_head"
|
|
android:layout_below="@+id/ll_head"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginRight="15dp"
|
|
- android:background="@drawable/rounded_leftbootom_rightbootom">
|
|
|
|
|
|
+ android:background="@drawable/round_corner_top_letf_right">
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recyclerView"
|
|
android:id="@+id/recyclerView"
|
|
@@ -165,10 +173,10 @@
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
|
+ android:visibility="@{TextUtils.isEmpty(viewModel.remark)?View.GONE:View.VISIBLE}"
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/ll_conten"
|
|
android:layout_below="@+id/ll_conten"
|
|
- android:minHeight="120dp"
|
|
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginRight="15dp"
|
|
@@ -176,10 +184,12 @@
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
|
|
|
|
- android:text="@{viewModel.remark}"
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:lineSpacingExtra="2dp"
|
|
android:lineSpacingExtra="2dp"
|
|
|
|
+ android:padding="15dp"
|
|
|
|
+ android:text="@{viewModel.remark}"
|
|
|
|
+ android:textSize="14dp"
|
|
android:textColor="#767676">
|
|
android:textColor="#767676">
|
|
|
|
|
|
</TextView>
|
|
</TextView>
|