| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2016 The OmniROM Project |
| |
| This program is free software: you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation, either version 2 of the License, or |
| (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program. If not, see <http://www.gnu.org/licenses/>. |
| --> |
| |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:minHeight="?android:attr/listPreferredItemHeight" |
| android:paddingStart="?android:attr/listPreferredItemPaddingStart" |
| android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" |
| android:paddingTop="8dip" |
| android:paddingBottom="8dip" |
| android:orientation="horizontal" > |
| |
| <ImageView |
| android:id="@+id/app_icon" |
| android:layout_width="@android:dimen/app_icon_size" |
| android:layout_height="@android:dimen/app_icon_size" |
| android:layout_marginEnd="8dip" |
| android:layout_gravity="center_vertical" |
| android:scaleType="centerInside" |
| android:contentDescription="@null" /> |
| |
| <TextView |
| android:id="@+id/app_name" |
| android:layout_width="0dip" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:layout_gravity="center_vertical" |
| android:singleLine="true" |
| android:ellipsize="marquee" |
| android:focusable="false" |
| android:textAppearance="?android:attr/textAppearanceListItem" |
| android:textAlignment="viewStart" /> |
| |
| </LinearLayout> |
| |