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

63 lines
2.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:paddingStart="?android:attr/listPreferredItemPaddingStart"
android:paddingTop="10dp"
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:paddingBottom="10dp">
<LinearLayout
android:id="@+id/left_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginStart="55dp"
android:orientation="vertical">
<TextView
android:id="@android:id/title"
style="?android:attr/preferenceStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:gravity="center"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="14sp"
android:textStyle="bold"
tools:text="Title" />
<TextView
android:id="@android:id/summary"
style="?android:attr/preferenceStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
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>
<Spinner
android:id="@+id/spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@android:id/title"
android:layout_alignBottom="@android:id/title"
android:layout_alignParentEnd="true"
android:layout_marginTop="-2dp"
android:textAlignment="textEnd"
android:layout_marginEnd="-10dp"
android:paddingStart="0dp"
android:paddingEnd="35dp" />
</RelativeLayout>