Kyrylo Mikos | 639f07c | 2018-02-09 12:56:27 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2012-2015 The CyanogenMod Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <LinearLayout 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:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| 23 | android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| 24 | android:paddingTop="8dip" |
| 25 | android:paddingBottom="8dip" |
| 26 | android:orientation="horizontal"> |
| 27 | |
| 28 | <ImageView |
| 29 | android:id="@+id/app_icon" |
| 30 | android:layout_width="@android:dimen/app_icon_size" |
| 31 | android:layout_height="@android:dimen/app_icon_size" |
| 32 | android:layout_marginEnd="8dip" |
| 33 | android:layout_gravity="center_vertical" |
| 34 | android:scaleType="centerInside" |
| 35 | android:contentDescription="@null" /> |
| 36 | |
| 37 | <LinearLayout |
| 38 | android:layout_width="0dp" |
| 39 | android:layout_height="match_parent" |
| 40 | android:layout_weight="1" |
| 41 | android:orientation="vertical" > |
| 42 | |
| 43 | <TextView |
| 44 | android:id="@+id/app_name" |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_gravity="fill_horizontal" |
| 48 | android:layout_marginTop="2dip" |
| 49 | android:singleLine="true" |
| 50 | android:ellipsize="marquee" |
| 51 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 52 | android:textAlignment="viewStart" /> |
| 53 | |
| 54 | <Spinner |
| 55 | android:id="@+id/app_mode" |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" |
| 58 | android:layout_gravity="fill_horizontal|top" |
| 59 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 60 | android:textAlignment="viewStart" /> |
| 61 | |
| 62 | </LinearLayout> |
| 63 | |
| 64 | <ImageView |
| 65 | android:id="@+id/state" |
| 66 | android:layout_width="wrap_content" |
| 67 | android:layout_height="match_parent" |
| 68 | android:scaleType="centerInside" |
| 69 | android:src="@drawable/ic_expanded_desktop_hidenone" |
| 70 | android:tint="?android:attr/colorControlNormal" /> |
| 71 | |
| 72 | </LinearLayout> |