填充了一些逻辑
This commit is contained in:
@@ -89,9 +89,17 @@ class SettingListFragment :
|
||||
this.llRoot.setOnClickListener {
|
||||
Timber.d("itemClick llRoot ${item.name}, position = $position")
|
||||
if (item.isBound()) {
|
||||
MainActivity.start(requireContext(), pageType = PageType.UNBIND_PLATE)
|
||||
MainActivity.start(
|
||||
requireContext(),
|
||||
pageType = PageType.UNBIND_PLATE,
|
||||
equipmentUserInfo = item
|
||||
)
|
||||
} else {
|
||||
MainActivity.start(requireContext(), pageType = PageType.BIND_PLATE)
|
||||
MainActivity.start(
|
||||
requireContext(),
|
||||
pageType = PageType.BIND_PLATE,
|
||||
equipmentUserInfo = item
|
||||
)
|
||||
}
|
||||
}
|
||||
this.llOpen.setOnClickListener {
|
||||
|
||||
@@ -38,5 +38,8 @@ class UnBindPlateFragment private constructor() : BaseFragment<FragmentUnbindPla
|
||||
binding.tvUpdateTimeValue.text = timeAgo
|
||||
}
|
||||
}
|
||||
binding.tvBack.setOnClickListener {
|
||||
activity?.finish()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="23dp"
|
||||
android:text="1-12"
|
||||
tools:text="1-12"
|
||||
android:textColor="#fff0c8b4"
|
||||
android:textSize="36sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="23dp"
|
||||
android:text="1-12"
|
||||
tools:text="1-12"
|
||||
android:textStyle="bold"
|
||||
android:textColor="#fff0c8b4"
|
||||
android:textSize="36sp" />
|
||||
@@ -65,7 +65,7 @@
|
||||
android:id="@+id/tv_plate_number_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="100888"
|
||||
tools:text="100888"
|
||||
android:textColor="#fff0c8b4"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
@@ -100,7 +100,7 @@
|
||||
android:id="@+id/tv_name_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="曹*磊"
|
||||
tools:text="曹*磊"
|
||||
android:textColor="#fff0c8b4"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
@@ -135,7 +135,7 @@
|
||||
android:id="@+id/tv_phone_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="138****8000"
|
||||
tools:text="138****8000"
|
||||
android:textColor="#fff0c8b4"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
@@ -169,7 +169,7 @@
|
||||
android:id="@+id/tv_update_time_value"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="14天前使用"
|
||||
tools:text="14天前使用"
|
||||
android:textColor="#fff0c8b4"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="282dp"
|
||||
android:layout_height="75dp"
|
||||
android:id="@+id/ll_root"
|
||||
android:background="@drawable/grid_item_unbind"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:paddingTop="6dp"
|
||||
android:paddingEnd="6dp"
|
||||
android:paddingBottom="6dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_num"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:text="02"
|
||||
android:textColor="#fff0c8b4"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_unbind"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_weight="1"
|
||||
android:text="未绑定"
|
||||
android:visibility="gone"
|
||||
android:textColor="#fff0c8b4"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_bind"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:text="马*飞(8000)"
|
||||
android:textColor="#585868"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_last_time"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:text="9小时前使用"
|
||||
android:textColor="#585868"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/tv_open"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="63dp"
|
||||
android:background="@drawable/grid_button_unbind"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="开启"
|
||||
android:textColor="#ff32283c"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user