mirror of
https://github.com/element-hq/element-android
synced 2024-12-23 01:31:24 +03:00
63 lines
No EOL
2.8 KiB
XML
63 lines
No EOL
2.8 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:foreground="?attr/selectableItemBackground"
|
|
android:minHeight="72dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp">
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
android:id="@+id/adapter_item_policy_checkbox"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:buttonTint="@color/login_button_tint"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/adapter_item_policy_title"
|
|
style="@style/TextAppearance.Vector.Login.Text"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:drawablePadding="8dp"
|
|
app:layout_constraintBottom_toTopOf="@+id/adapter_item_policy_subtitle"
|
|
app:layout_constraintEnd_toStartOf="@+id/adapter_item_policy_arrow"
|
|
app:layout_constraintStart_toEndOf="@+id/adapter_item_policy_checkbox"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
tools:text="Policy title" />
|
|
|
|
<TextView
|
|
android:id="@+id/adapter_item_policy_subtitle"
|
|
style="@style/TextAppearance.Vector.Login.Text.Small"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:drawablePadding="8dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@+id/adapter_item_policy_arrow"
|
|
app:layout_constraintStart_toEndOf="@+id/adapter_item_policy_checkbox"
|
|
app:layout_constraintTop_toBottomOf="@+id/adapter_item_policy_title"
|
|
tools:text="matrix.org" />
|
|
|
|
<!-- Do not use drawableEnd on the TextView because of RTL support -->
|
|
<ImageView
|
|
android:id="@+id/adapter_item_policy_arrow"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:importantForAccessibility="no"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="0dp"
|
|
android:rotationY="@integer/rtl_mirror_flip"
|
|
android:src="@drawable/ic_material_chevron_right_black"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:tint="?riotx_android_secondary"
|
|
tools:ignore="MissingPrefix" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |