Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2013 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 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:dimen/preference_item_padding_side">
     23 
     24     <LinearLayout
     25         android:layout_width="wrap_content"
     26         android:layout_height="match_parent"
     27         android:layout_weight="1"
     28         android:id="@+id/app_restrictions_pref"
     29         android:focusable="true"
     30         android:clickable="true"
     31         android:gravity="center_vertical"
     32         android:background="?android:attr/selectableItemBackground" >
     33         <LinearLayout
     34             android:layout_width="wrap_content"
     35             android:layout_height="match_parent"
     36             android:gravity="center"
     37             android:minWidth="@*android:dimen/preference_icon_minWidth"
     38             android:orientation="horizontal">
     39             <ImageView
     40                 android:id="@+android:id/icon"
     41                 android:layout_width="48dp"
     42                 android:layout_height="48dp"
     43                 android:layout_gravity="center"
     44                 android:minWidth="48dp"
     45                 android:scaleType="centerInside"
     46                 android:layout_marginEnd="@*android:dimen/preference_item_padding_inner"
     47                  />
     48         </LinearLayout>
     49         <RelativeLayout
     50             android:layout_width="wrap_content"
     51             android:layout_height="wrap_content"
     52             android:layout_marginEnd="6dip"
     53             android:layout_marginTop="6dip"
     54             android:layout_marginBottom="6dip"
     55             android:layout_weight="1">
     56             <TextView
     57                 android:id="@+android:id/title"
     58                 android:layout_width="wrap_content"
     59                 android:layout_height="wrap_content"
     60                 android:singleLine="true"
     61                 android:textAppearance="?android:attr/textAppearanceMedium"
     62                 android:ellipsize="marquee"
     63                 android:fadingEdge="horizontal"/>
     64             <TextView
     65                 android:id="@android:id/summary"
     66                 android:layout_width="wrap_content"
     67                 android:layout_height="wrap_content"
     68                 android:layout_below="@android:id/title"
     69                 android:layout_alignStart="@android:id/title"
     70                 android:paddingBottom="3dip"
     71                 android:visibility="gone"
     72                 android:textAppearance="?android:attr/textAppearanceSmall"
     73                 android:textSize="13sp"
     74                 android:textColor="?android:attr/textColorSecondary"
     75                 android:focusable="false"
     76                 android:maxLines="4" />
     77         </RelativeLayout>
     78     </LinearLayout>
     79     <ImageView
     80         android:id="@+id/app_restrictions_settings"
     81         android:layout_width="wrap_content"
     82         android:layout_height="fill_parent"
     83         android:paddingStart="12dip"
     84         android:paddingEnd="12dp"
     85         android:src="@drawable/ic_sysbar_quicksettings"
     86         android:contentDescription="@string/apps_with_restrictions_settings_button"
     87         android:layout_gravity="center"
     88         android:clickable="true"
     89         android:focusable="true"
     90         android:background="?android:attr/selectableItemBackground" />
     91     <View
     92         android:id="@+id/settings_divider"
     93         android:layout_width="1dip"
     94         android:layout_height="match_parent"
     95         android:layout_marginTop="5dip"
     96         android:layout_marginBottom="5dip"
     97         android:background="@android:drawable/divider_horizontal_dark" />
     98 
     99     <LinearLayout
    100         android:id="@android:id/widget_frame"
    101         android:layout_width="wrap_content"
    102         android:layout_height="match_parent"
    103         android:gravity="center_vertical"
    104         android:orientation="vertical" />
    105 </LinearLayout>
    106