1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** Copyright 2016, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License"); 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19 20<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:gravity="center_vertical" 24 android:minHeight="?android:attr/listPreferredItemHeightSmall" 25 android:paddingEnd="16dp" 26 android:paddingStart="16dp"> 27 28 <TextView 29 android:id="@+id/text" 30 android:layout_width="wrap_content" 31 android:layout_height="wrap_content" 32 android:layout_alignParentLeft="true" 33 android:ellipsize="marquee" 34 android:textAppearance="?android:attr/textAppearanceListItemSmall" 35 android:textColor="?android:attr/textColorAlertDialogListItem" /> 36 37 <ImageView 38 android:id="@+id/restricted_icon" 39 android:layout_width="@*android:dimen/config_restrictedIconSize" 40 android:layout_height="@*android:dimen/config_restrictedIconSize" 41 android:layout_alignParentRight="true" 42 android:scaleType="centerInside" 43 android:src="@*android:drawable/ic_info" 44 android:tint="?android:attr/colorAccent" 45 android:visibility="gone" /> 46 47</RelativeLayout> 48