74 lines
3.1 KiB
XML
74 lines
3.1 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"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:paddingHorizontal="8dp"
|
|
android:paddingVertical="8dp">
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
android:id="@+id/cb_source"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="start"
|
|
android:singleLine="true"
|
|
app:layout_constraintBottom_toTopOf="@id/title_example"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintRight_toLeftOf="@id/swt_enabled"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="TouchTargetSizeCheck,DuplicateSpeakableTextCheck" />
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/swt_enabled"
|
|
android:name="@string/enable"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="12dp"
|
|
app:layout_constraintBottom_toTopOf="@id/title_example"
|
|
app:layout_constraintRight_toLeftOf="@id/iv_edit"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlSymmetry,TouchTargetSizeCheck" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_edit"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:layout_gravity="center"
|
|
android:padding="4dp"
|
|
android:contentDescription="@string/edit"
|
|
android:layout_marginEnd="8dp"
|
|
android:src="@drawable/ic_edit"
|
|
app:layout_constraintBottom_toTopOf="@id/title_example"
|
|
app:layout_constraintRight_toLeftOf="@id/iv_menu_more"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/iv_menu_more"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:padding="4dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/more_menu"
|
|
android:src="@drawable/ic_more_vert"
|
|
app:layout_constraintBottom_toTopOf="@id/title_example"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="RtlHardcoded" />
|
|
|
|
<TextView
|
|
android:id="@+id/title_example"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="6dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:textSize="12sp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |