2019-10-30 21:58:42 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<layout 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">
|
|
|
|
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<variable
|
|
|
|
name="item"
|
2020-12-31 00:55:53 +01:00
|
|
|
type="com.topjohnwu.magisk.ui.hide.HideProcessRvItem" />
|
2019-10-30 21:58:42 +01:00
|
|
|
|
|
|
|
<variable
|
|
|
|
name="viewModel"
|
2020-01-12 17:43:09 +01:00
|
|
|
type="com.topjohnwu.magisk.ui.hide.HideViewModel" />
|
2019-10-30 21:58:42 +01:00
|
|
|
|
|
|
|
</data>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-02-11 19:14:48 +01:00
|
|
|
android:layout_gravity="center"
|
2020-08-10 16:05:07 +02:00
|
|
|
android:alpha="@{item.hidden ? 1f : .7f}">
|
2019-10-30 21:58:42 +01:00
|
|
|
|
2020-08-10 16:05:07 +02:00
|
|
|
<TextView
|
2019-10-30 21:58:42 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/l1"
|
2020-02-11 19:14:48 +01:00
|
|
|
android:layout_marginTop="@dimen/l_75"
|
2019-10-30 21:58:42 +01:00
|
|
|
android:layout_marginEnd="@dimen/l1"
|
2020-02-11 19:14:48 +01:00
|
|
|
android:layout_marginBottom="@dimen/l_75"
|
2019-10-30 21:58:42 +01:00
|
|
|
android:singleLine="true"
|
2020-08-26 13:23:43 +02:00
|
|
|
android:ellipsize="middle"
|
2021-03-18 20:24:14 +01:00
|
|
|
android:text="@{item.displayName}"
|
2019-11-22 19:29:53 +01:00
|
|
|
android:textAppearance="@style/AppearanceFoundation.Caption.Variant"
|
2019-10-30 21:58:42 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/hide_process_checkbox"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="com.topjohnwu.magisk" />
|
|
|
|
|
2020-08-10 16:05:07 +02:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2019-10-30 21:58:42 +01:00
|
|
|
android:id="@+id/hide_process_checkbox"
|
2020-08-10 16:05:07 +02:00
|
|
|
android:checked="@={item.hidden}"
|
2020-02-11 19:14:48 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="@dimen/l_50"
|
2019-10-30 21:58:42 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2020-08-10 16:05:07 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2019-10-30 21:58:42 +01:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
2020-01-12 17:43:09 +01:00
|
|
|
</layout>
|