123 lines
5.1 KiB
XML
123 lines
5.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
|
android:gravity="center_vertical"
|
|
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
|
android:background="?android:attr/activatedBackgroundIndicator"
|
|
android:clipToPadding="false">
|
|
|
|
<LinearLayout
|
|
android:id="@android:id/icon_frame"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="-4dp"
|
|
android:minWidth="60dp"
|
|
android:gravity="start|center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingEnd="12dp"
|
|
android:paddingTop="4dp"
|
|
android:paddingBottom="4dp">
|
|
<com.android.internal.widget.PreferenceImageView
|
|
android:id="@android:id/icon"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:maxWidth="48dp"
|
|
android:maxHeight="48dp" />
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp">
|
|
|
|
<TextView android:id="@android:id/title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceListItem"
|
|
android:ellipsize="marquee" />
|
|
|
|
<TextView android:id="@android:id/summary"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@android:id/title"
|
|
android:layout_alignStart="@android:id/title"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:maxLines="10"
|
|
android:ellipsize="end" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@android:id/summary" >
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/imageMinus"
|
|
android:src="@drawable/ic_seekbar_minus"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerInParent="true" />
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/imagePlus"
|
|
android:src="@drawable/ic_seekbar_plus"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_centerInParent="true" />
|
|
|
|
<TextView android:id="@+id/seekBarPrefUnitsRight"
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:paddingStart="3dp"
|
|
android:layout_toLeftOf="@+id/imagePlus" />
|
|
|
|
<TextView android:id="@+id/seekBarPrefValue"
|
|
android:layout_centerInParent="true"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_toLeftOf="@id/seekBarPrefUnitsRight"
|
|
android:gravity="right"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
android:textColor="?android:attr/textColorSecondary" />
|
|
|
|
<SeekBar android:id="@+id/seekbar"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_toLeftOf="@+id/seekBarPrefValue"
|
|
android:layout_toRightOf="@+id/imageMinus" />
|
|
|
|
<TextView android:id="@+id/seekBarPrefUnitsLeft"
|
|
android:layout_centerInParent="true"
|
|
android:layout_toLeftOf="@id/seekBarPrefValue"
|
|
android:paddingEnd="3dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceListItemSecondary"
|
|
android:textColor="?android:attr/textColorSecondary" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout android:id="@+id/widget_frame"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:gravity="end|center_vertical"
|
|
android:paddingStart="16dp"
|
|
android:orientation="vertical" />
|
|
|
|
</LinearLayout>
|