You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
3.0 KiB
XML
92 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="item"
|
|
type="com.example.haiwei_mom.data.device.DeviceInspectionItem" />
|
|
</data>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/white"
|
|
android:layout_marginTop="5dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="40dp">
|
|
|
|
<TextView
|
|
style="@style/item_title"
|
|
android:layout_width="35dp"
|
|
android:layout_height="match_parent"
|
|
android:text="@{String.valueOf(item.index)}" />
|
|
|
|
<TextView
|
|
style="@style/item_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text="@{item.inspectProjectName}" />
|
|
|
|
<RadioGroup
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:onClick='@{()-> item.setInspectProjectStatus("1")}'
|
|
android:text="正常" />
|
|
|
|
<RadioButton
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:onClick='@{()-> item.setInspectProjectStatus("0")}'
|
|
android:text="异常" />
|
|
|
|
</RadioGroup>
|
|
|
|
<TextView
|
|
style="@style/item_title"
|
|
android:layout_width="50dp"
|
|
android:layout_height="match_parent"
|
|
android:text='@{item.statusName}' />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="40dp">
|
|
|
|
<TextView
|
|
style="@style/item_title_blue"
|
|
android:layout_width="70dp"
|
|
android:layout_height="match_parent"
|
|
android:text="描述:" />
|
|
|
|
<EditText
|
|
style="@style/item_text_13"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:text='@={item.inspectProjectDesc}' />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:background="#e1e1e1" />
|
|
</LinearLayout>
|
|
</layout> |