Steve Kondik | 01fc9e6 | 2016-10-13 03:58:39 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2015 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| 17 | <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="wrap_content" |
| 20 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 21 | android:gravity="center_vertical" |
| 22 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 23 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 24 | android:background="?android:attr/activatedBackgroundIndicator" |
| 25 | android:clipToPadding="false"> |
| 26 | |
| 27 | <LinearLayout |
| 28 | android:layout_width="match_parent" |
| 29 | android:layout_height="wrap_content" |
| 30 | android:orientation="vertical" |
| 31 | android:layout_marginTop="8dip" |
| 32 | android:layout_marginBottom="8dip"> |
| 33 | |
| 34 | <TextView android:id="@android:id/title" |
| 35 | android:layout_width="wrap_content" |
| 36 | android:layout_height="wrap_content" |
| 37 | android:singleLine="true" |
| 38 | android:textAppearance="?android:attr/textAppearanceListItem" |
| 39 | android:ellipsize="marquee" |
| 40 | android:fadingEdge="horizontal" /> |
| 41 | |
| 42 | <FrameLayout |
| 43 | android:layout_width="match_parent" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_marginTop="8dp"> |
| 46 | |
| 47 | <ImageView |
| 48 | android:id="@+id/icon" |
| 49 | android:layout_gravity="center_vertical|start" |
| 50 | android:layout_width="48dp" |
| 51 | android:layout_height="48dp" /> |
| 52 | |
| 53 | <SeekBar |
| 54 | android:id="@+id/seekbar" |
| 55 | android:layout_marginStart="56dp" |
| 56 | android:layout_marginEnd="16dp" |
| 57 | android:layout_gravity="center_vertical" |
| 58 | android:layout_width="match_parent" |
| 59 | android:layout_height="48dp" |
| 60 | style="@android:style/Widget.Material.SeekBar.Discrete" |
| 61 | android:tickMarkTint="@android:color/black" /> |
| 62 | |
| 63 | </FrameLayout> |
| 64 | |
| 65 | <TextView |
| 66 | android:id="@android:id/summary" |
| 67 | android:paddingTop="4dp" |
| 68 | android:layout_width="wrap_content" |
| 69 | android:layout_height="wrap_content" |
| 70 | android:textAppearance="?android:attr/textAppearanceListItemSecondary" |
| 71 | android:textColor="?android:attr/textColorSecondary" |
| 72 | android:gravity="center_vertical" |
| 73 | android:minLines="3" |
| 74 | android:maxLines="4" /> |
| 75 | |
| 76 | </LinearLayout> |
| 77 | |
| 78 | </FrameLayout> |