|
|
@ -2,25 +2,12 @@ |
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout |
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
|
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:layout_height="wrap_content" |
|
|
|
android:paddingStart="8dp" |
|
|
|
android:paddingStart="8dp" |
|
|
|
android:paddingEnd="8dp"> |
|
|
|
android:paddingEnd="8dp"> |
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckBox |
|
|
|
|
|
|
|
android:id="@+id/cb_enable" |
|
|
|
|
|
|
|
android:text="Rule Name" |
|
|
|
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:paddingTop="16dp" |
|
|
|
|
|
|
|
android:paddingBottom="16dp" |
|
|
|
|
|
|
|
android:textSize="16sp" |
|
|
|
|
|
|
|
android:textColor="@color/text_default" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/iv_delete" |
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView |
|
|
|
<androidx.appcompat.widget.AppCompatImageView |
|
|
|
android:id="@+id/iv_edit" |
|
|
|
android:id="@+id/iv_edit" |
|
|
|
android:layout_width="wrap_content" |
|
|
|
android:layout_width="wrap_content" |
|
|
@ -29,6 +16,7 @@ |
|
|
|
android:background="@drawable/bg_ib_pre_round" |
|
|
|
android:background="@drawable/bg_ib_pre_round" |
|
|
|
android:contentDescription="@string/edit" |
|
|
|
android:contentDescription="@string/edit" |
|
|
|
android:src="@drawable/ic_edit" |
|
|
|
android:src="@drawable/ic_edit" |
|
|
|
|
|
|
|
android:visibility="gone" |
|
|
|
app:tint="@color/text_default" |
|
|
|
app:tint="@color/text_default" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/iv_delete" |
|
|
|
app:layout_constraintEnd_toStartOf="@id/iv_delete" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
@ -42,11 +30,54 @@ |
|
|
|
android:background="@drawable/bg_ib_pre_round" |
|
|
|
android:background="@drawable/bg_ib_pre_round" |
|
|
|
android:contentDescription="@string/delete" |
|
|
|
android:contentDescription="@string/delete" |
|
|
|
android:src="@drawable/ic_clear_all" |
|
|
|
android:src="@drawable/ic_clear_all" |
|
|
|
|
|
|
|
android:visibility="gone" |
|
|
|
app:tint="@color/text_default" |
|
|
|
app:tint="@color/text_default" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
app:layout_constraintTop_toTopOf="parent"/> |
|
|
|
app:layout_constraintTop_toTopOf="parent"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatCheckBox |
|
|
|
|
|
|
|
android:id="@+id/cb_selected" |
|
|
|
|
|
|
|
android:text="" |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:paddingStart="16dp" |
|
|
|
|
|
|
|
android:paddingTop="16dp" |
|
|
|
|
|
|
|
android:paddingBottom="16dp" |
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/tv_name" |
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView |
|
|
|
|
|
|
|
android:id="@+id/tv_name" |
|
|
|
|
|
|
|
android:layout_width="0dp" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
android:padding="16dp" |
|
|
|
|
|
|
|
android:textSize="16sp" |
|
|
|
|
|
|
|
android:text="Item Name" |
|
|
|
|
|
|
|
android:textColor="@color/text_default" |
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/cb_selected" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/swt_enabled"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Switch |
|
|
|
|
|
|
|
android:id="@+id/swt_enabled" |
|
|
|
|
|
|
|
android:name="@string/enable" |
|
|
|
|
|
|
|
android:text="" |
|
|
|
|
|
|
|
android:paddingStart="16dp" |
|
|
|
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" |
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/tv_name" |
|
|
|
|
|
|
|
app:layout_constraintHorizontal_bias="1"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<View |
|
|
|
<View |
|
|
|
android:id="@+id/divider" |
|
|
|
android:id="@+id/divider" |
|
|
|
android:layout_width="match_parent" |
|
|
|
android:layout_width="match_parent" |
|
|
|