Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 <LinearLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:id="@+id/pref_all"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:minHeight="?android:attr/listPreferredItemHeight"
     22     android:gravity="center_vertical">
     23     <LinearLayout
     24         android:id="@+id/pref_left_button"
     25         android:layout_width="wrap_content"
     26         android:layout_height="match_parent"
     27         android:layout_weight="1"
     28         android:gravity="center_vertical"
     29         android:clickable="true"
     30         android:focusable="true"
     31         android:background="?android:attr/selectableItemBackground">
     32         <RadioButton
     33             android:id="@+id/pref_radio"
     34             android:layout_width="wrap_content"
     35             android:layout_height="wrap_content"
     36             android:clickable="false"
     37             android:focusable="false" />
     38         <RelativeLayout
     39             android:layout_width="wrap_content"
     40             android:layout_height="wrap_content"
     41             android:layout_marginEnd="6dip"
     42             android:layout_marginTop="6dip"
     43             android:layout_marginBottom="6dip"
     44             android:layout_weight="1">
     45             <TextView
     46                 android:id="@+android:id/title"
     47                 android:layout_width="wrap_content"
     48                 android:layout_height="wrap_content"
     49                 android:maxLines="2"
     50                 android:textAppearance="?android:attr/textAppearanceMedium"
     51                 android:ellipsize="marquee"
     52                 android:fadingEdge="horizontal" />
     53             <TextView
     54                 android:id="@android:id/summary"
     55                 android:layout_width="wrap_content"
     56                 android:layout_height="wrap_content"
     57                 android:layout_below="@android:id/title"
     58                 android:layout_alignStart="@android:id/title"
     59                 android:visibility="gone"
     60                 android:textAppearance="?android:attr/textAppearanceSmall"
     61                 android:textSize="13sp"
     62                 android:textColor="?android:attr/textColorSecondary"
     63                 android:maxLines="4" />
     64         </RelativeLayout>
     65     </LinearLayout>
     66     <LinearLayout
     67         android:id="@+id/pref_right_button1"
     68         android:layout_width="wrap_content"
     69         android:layout_height="match_parent"
     70         android:gravity="center_vertical"
     71         android:clickable="true"
     72         android:focusable="true"
     73         android:background="?android:attr/selectableItemBackground"
     74         android:contentDescription="@string/spellchecker_quick_settings" >
     75         <View
     76             android:layout_width="2dip"
     77             android:layout_height="match_parent"
     78             android:layout_marginTop="5dip"
     79             android:layout_marginBottom="5dip"
     80             android:background="@android:drawable/divider_horizontal_dark" />
     81         <ImageView
     82             android:layout_width="40dip"
     83             android:layout_height="fill_parent"
     84             android:paddingStart="5dip"
     85             android:paddingEnd="5dip"
     86             android:src="@drawable/ic_sysbar_quicksettings"
     87             android:layout_gravity="center"
     88             android:contentDescription="@string/spellchecker_quick_settings" />
     89     </LinearLayout>
     90     <View
     91         android:id="@+id/pref_right_separator2"
     92         android:layout_width="2dip"
     93         android:layout_height="match_parent"
     94         android:layout_marginTop="5dip"
     95         android:layout_marginBottom="5dip"
     96         android:background="@android:drawable/divider_horizontal_dark" />
     97     <ImageView
     98         android:id="@+id/pref_right_button2"
     99         android:layout_width="40dip"
    100         android:layout_height="fill_parent"
    101         android:paddingStart="5dip"
    102         android:paddingEnd="5dip"
    103         android:src="@drawable/ic_menu_3d_globe"
    104         android:layout_gravity="end"
    105         android:clickable="true"
    106         android:focusable="true"
    107         android:background="?android:attr/selectableItemBackground"
    108         android:contentDescription="@string/spellchecker_language" />
    109 </LinearLayout>