You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.0 KiB
XML
60 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
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:gravity="center_vertical"
|
|
android:minHeight="?android:listPreferredItemHeightSmall"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/imageView_icon"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_marginHorizontal="?listPreferredItemPaddingStart"
|
|
android:background="?colorControlHighlight"
|
|
android:labelFor="@id/textView_title"
|
|
android:scaleType="fitCenter"
|
|
app:shapeAppearance="?shapeAppearanceCornerSmall"
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="8dp"
|
|
android:layout_marginStart="?android:listPreferredItemPaddingStart"
|
|
android:layout_marginEnd="?android:listPreferredItemPaddingEnd"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/textView_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textAppearance="?attr/textAppearanceBodyLarge"
|
|
tools:text="@tools:sample/lorem[15]" />
|
|
|
|
<TextView
|
|
android:id="@+id/textView_description"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="2dp"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
tools:text="English" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/switch_toggle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="?listPreferredItemPaddingEnd" />
|
|
|
|
</LinearLayout>
|