113 lines
4.2 KiB
XML
113 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="50dp">
|
|
|
|
<View
|
|
android:id="@+id/decoration_top"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0.2dp"
|
|
android:background="#E5E5E5"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="@id/tv_item_name"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_item_left_icon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginVertical="10dp"
|
|
android:layout_marginStart="15dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
<TextView
|
|
android:id="@+id/tv_item_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="15dp"
|
|
android:text="xxx"
|
|
android:textColor="@color/black"
|
|
android:textSize="17sp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/iv_item_left_icon"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_goneMarginStart="15dp"
|
|
app:layout_goneMarginTop="0dp" />
|
|
|
|
<View
|
|
android:id="@+id/view_red_tip"
|
|
android:layout_width="8dp"
|
|
android:layout_height="8dp"
|
|
android:layout_marginStart="10dp"
|
|
android:background="@drawable/icon_red_dot"
|
|
android:visibility="invisible"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toEndOf="@id/tv_item_name"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_item_desc"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="4dp"
|
|
android:text="aaaa"
|
|
android:textColor="#797979"
|
|
android:textSize="15sp"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/right_layout"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<androidx.constraintlayout.utils.widget.ImageFilterView
|
|
android:id="@+id/iv_item_icon"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:layout_marginVertical="10dp"
|
|
android:layout_marginEnd="10dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/right_layout"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:roundPercent="0.2" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/right_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="15dp"
|
|
app:layout_constraintBottom_toBottomOf="@id/tv_item_name"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/tv_item_name">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_arrow_right"
|
|
android:layout_width="16dp"
|
|
android:layout_height="16dp"
|
|
android:layout_centerInParent="true"
|
|
android:src="@drawable/icon_arrow_right" />
|
|
|
|
<com.kaixed.kchat.ui.widget.ShSwitchView
|
|
android:id="@+id/ssv_switch"
|
|
android:layout_width="57dp"
|
|
android:layout_height="38dp"
|
|
android:layout_centerInParent="true"
|
|
android:visibility="gone"
|
|
app:tintColor="@color/green" />
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:id="@+id/decoration_bottom"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0.2dp"
|
|
android:background="#E5E5E5"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="@id/tv_item_name" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |