mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Merge pull request #4052 from Bnyro/master
Fix overflowing text in SponsorBlock preference
This commit is contained in:
commit
f189e73ea7
@ -1,62 +1,59 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||||
android:paddingTop="10dp"
|
android:paddingTop="10dp"
|
||||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||||
android:paddingBottom="10dp">
|
android:paddingBottom="10dp">
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/left_container"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentStart="true"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_marginStart="55dp"
|
android:layout_marginStart="55dp"
|
||||||
android:orientation="vertical">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@android:id/title"
|
android:id="@android:id/title"
|
||||||
style="?android:attr/preferenceStyle"
|
style="?android:attr/preferenceStyle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ellipsize="marquee"
|
android:layout_marginEnd="5dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:ellipsize="end"
|
||||||
android:fadingEdge="horizontal"
|
android:fadingEdge="horizontal"
|
||||||
android:gravity="center"
|
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
|
android:textAlignment="textStart"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
android:textSize="14sp"
|
android:textSize="14sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
tools:text="Title" />
|
tools:text="Title" />
|
||||||
|
|
||||||
<TextView
|
<Spinner
|
||||||
android:id="@android:id/summary"
|
android:id="@+id/spinner"
|
||||||
style="?android:attr/preferenceStyle"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginEnd="-10dp"
|
||||||
android:ellipsize="marquee"
|
android:paddingStart="0dp"
|
||||||
android:fadingEdge="horizontal"
|
android:paddingEnd="35dp"
|
||||||
android:lineSpacingExtra="4dp"
|
android:textAlignment="textEnd" />
|
||||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
||||||
android:textSize="14sp"
|
|
||||||
tools:text="Summary" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<Spinner
|
<TextView
|
||||||
android:id="@+id/spinner"
|
android:id="@android:id/summary"
|
||||||
|
style="?android:attr/preferenceStyle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignTop="@android:id/title"
|
android:layout_marginStart="55dp"
|
||||||
android:layout_alignBottom="@android:id/title"
|
android:layout_marginTop="8dp"
|
||||||
android:layout_alignParentEnd="true"
|
android:ellipsize="marquee"
|
||||||
android:layout_marginTop="-2dp"
|
android:fadingEdge="horizontal"
|
||||||
android:textAlignment="textEnd"
|
android:lineSpacingExtra="4dp"
|
||||||
android:layout_marginEnd="-10dp"
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
android:paddingStart="0dp"
|
android:textSize="14sp"
|
||||||
android:paddingEnd="35dp" />
|
tools:text="Summary" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</LinearLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user