Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2014 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 | <LinearLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="wrap_content" |
| 21 | android:minHeight="?android:attr/listPreferredItemHeight" |
| 22 | android:gravity="center_vertical"> |
Adrian Roos | 2c22d6d | 2014-07-18 13:42:01 +0200 | [diff] [blame] | 23 | |
Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 24 | <LinearLayout |
| 25 | android:id="@+id/clickable" |
| 26 | android:layout_width="wrap_content" |
| 27 | android:layout_height="match_parent" |
| 28 | android:layout_weight="1" |
Adrian Roos | 2c22d6d | 2014-07-18 13:42:01 +0200 | [diff] [blame] | 29 | android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 30 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 31 | android:gravity="center_vertical" |
| 32 | android:clickable="true" |
| 33 | android:focusable="true" |
| 34 | android:background="?android:attr/selectableItemBackground"> |
Adrian Roos | 2c22d6d | 2014-07-18 13:42:01 +0200 | [diff] [blame] | 35 | |
Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 36 | <CheckBox |
| 37 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 38 | android:id="@+id/checkbox" |
| 39 | android:layout_width="wrap_content" |
| 40 | android:layout_height="match_parent" |
| 41 | android:layout_gravity="center" |
| 42 | android:focusable="false" |
| 43 | android:clickable="false"/> |
Adrian Roos | 2c22d6d | 2014-07-18 13:42:01 +0200 | [diff] [blame] | 44 | |
Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 45 | <RelativeLayout |
| 46 | android:layout_width="wrap_content" |
| 47 | android:layout_height="wrap_content" |
| 48 | android:layout_marginEnd="6dip" |
| 49 | android:layout_marginTop="6dip" |
| 50 | android:layout_marginBottom="6dip" |
| 51 | android:layout_weight="1"> |
Adrian Roos | 2c22d6d | 2014-07-18 13:42:01 +0200 | [diff] [blame] | 52 | |
Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 53 | <TextView |
| 54 | android:id="@+id/name" |
| 55 | android:layout_width="wrap_content" |
| 56 | android:layout_height="wrap_content" |
| 57 | android:singleLine="true" |
| 58 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 59 | android:ellipsize="marquee" |
| 60 | android:fadingEdge="horizontal"/> |
Adrian Roos | 2c22d6d | 2014-07-18 13:42:01 +0200 | [diff] [blame] | 61 | |
Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 62 | <TextView |
| 63 | android:id="@+id/description" |
| 64 | android:layout_width="wrap_content" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:layout_below="@android:id/title" |
| 67 | android:layout_alignStart="@android:id/title" |
| 68 | android:paddingBottom="3dip" |
| 69 | android:visibility="gone" |
| 70 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 71 | android:textSize="13sp" |
| 72 | android:textColor="?android:attr/textColorSecondary" |
| 73 | android:focusable="false" |
| 74 | android:maxLines="4"/> |
Adrian Roos | 2c22d6d | 2014-07-18 13:42:01 +0200 | [diff] [blame] | 75 | |
Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 76 | </RelativeLayout> |
Adrian Roos | 2c22d6d | 2014-07-18 13:42:01 +0200 | [diff] [blame] | 77 | |
Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 78 | </LinearLayout> |
Adrian Roos | 2c22d6d | 2014-07-18 13:42:01 +0200 | [diff] [blame] | 79 | |
Adrian Roos | 5954ff5 | 2014-03-24 21:21:51 +0100 | [diff] [blame] | 80 | </LinearLayout> |