BobStore/app/src/main/res/layout/preference_seekbar.xml

55 lines
2.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="14dip"
android:layout_marginStart="16dip"
android:layout_marginEnd="16dip">
<TextView android:id="@+android:id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="?attr/textAppearanceListItem"
android:textColor="?android:attr/textColorPrimary"
android:ellipsize="marquee"
android:fadingEdge="horizontal"/>
<TextView android:id="@+android:id/summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@android:id/title"
android:layout_alignLeft="@android:id/title"
android:layout_alignStart="@android:id/title"
android:textAppearance="?attr/textAppearanceListItemSmall"
android:textColor="?android:attr/textColorSecondary"
android:singleLine="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"/>
<!-- @+id/seekbar_value must be present in a SeekBarPreference, but we don't use it -->
<TextView
android:id="@+id/seekbar_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/seekbar"
android:layout_alignTop="@android:id/summary"
android:layout_alignRight="@android:id/summary"
android:layout_alignEnd="@android:id/summary"
android:visibility="gone"
android:textSize="0sp"/>
2018-06-14 16:13:08 +02:00
<org.fdroid.fdroid.views.SeekBarForegroundThumb
android:id="@+id/seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@android:id/summary"
android:layout_alignStart="@android:id/summary"
android:layout_alignLeft="@android:id/summary"
2018-06-14 16:13:08 +02:00
android:progressDrawable="@drawable/seekbar_bg"
2018-06-08 19:23:29 +02:00
android:thumb="@drawable/seekbar_thumb"
android:padding="16dip"
2018-06-08 20:05:24 +02:00
android:theme="@style/DiscreteSeekBar"/>
</RelativeLayout>