LibreTube/app/src/main/res/layout/spinner_preference.xml

60 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingTop="10dp"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:paddingBottom="10dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="55dp"
android:orientation="horizontal">
<TextView
android:id="@android:id/title"
style="?android:attr/preferenceStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="5dp"
android:layout_weight="1"
android:ellipsize="end"
android:fadingEdge="horizontal"
android:singleLine="true"
android:textAlignment="textStart"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="14sp"
android:textStyle="bold"
tools:text="Title" />
<Spinner
android:id="@+id/spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="-10dp"
android:paddingStart="0dp"
android:paddingEnd="35dp"
android:textAlignment="textEnd" />
</LinearLayout>
<TextView
android:id="@android:id/summary"
style="?android:attr/preferenceStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="55dp"
android:layout_marginTop="8dp"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:lineSpacingExtra="4dp"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="14sp"
tools:text="Summary" />
</LinearLayout>