Update: Migrate from viewBinding to dataBinding

This commit is contained in:
machiav3lli
2021-12-13 02:53:34 +01:00
parent 758649c8c2
commit 011cf6a41f
14 changed files with 747 additions and 662 deletions

View File

@ -1,39 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:orientation="horizontal">
<layout xmlns:android="http://schemas.android.com/apk/res/android">
<data>
</data>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="0dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
android:padding="16dp">
android:background="?android:attr/selectableItemBackground"
android:orientation="horizontal">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="match_parent"
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="0dp"
android:layout_height="wrap_content"
android:singleLine="true"
android:textSize="16sp" />
android:layout_weight="1"
android:orientation="vertical"
android:padding="16dp">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textSize="16sp" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp" />
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/check"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="-16dp"
android:clickable="false"
android:paddingHorizontal="12dp"
android:visibility="gone" />
</androidx.appcompat.widget.LinearLayoutCompat>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/check"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="-16dp"
android:clickable="false"
android:paddingHorizontal="12dp"
android:visibility="gone" />
</androidx.appcompat.widget.LinearLayoutCompat>
</layout>