website_settings_row.xml revision be9560dbeb44338070170816b1ca45b2125b7ad9
1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2009 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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:drawingCacheQuality="auto" 19 android:layout_width="fill_parent" 20 android:layout_height="?android:attr/listPreferredItemHeight" 21 android:gravity="center_vertical" 22 android:padding="0dip"> 23 24 <ImageView android:id="@+id/icon" 25 android:layout_width="20dip" 26 android:layout_height="20dip" 27 android:layout_marginLeft="18dip" 28 android:layout_marginRight="18dip" 29 android:layout_centerVertical="true" 30 android:background="@drawable/fav_icn_background" 31 android:padding="2dip" /> 32 33 <LinearLayout android:id="@+id/features" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:layout_alignParentTop="true" 37 android:layout_alignParentBottom="true" 38 android:layout_alignParentRight="true" 39 android:gravity="center" 40 android:padding="0dip" 41 android:layout_marginRight="2dip"> 42 43 <ImageView android:id="@+id/location_icon" 44 android:layout_width="32dip" 45 android:layout_height="32dip" 46 android:padding="2dip" /> 47 48 <ImageView android:id="@+id/usage_icon" 49 android:layout_width="32dip" 50 android:layout_height="32dip" 51 android:padding="2dip" /> 52 53 <ImageView android:id="@+id/feature_icon" 54 android:layout_width="32dip" 55 android:layout_height="32dip" 56 android:padding="2dip" 57 android:layout_centerVertical="true" 58 android:layout_alignParentRight="true" 59 android:visibility="gone" /> 60 </LinearLayout> 61 62 <LinearLayout 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:layout_toRightOf="@id/icon" 66 android:layout_toLeftOf="@id/features" 67 android:layout_centerVertical="true" 68 android:layout_alignWithParentIfMissing="true" 69 android:orientation="vertical"> 70 71 <TextView android:id="@+id/title" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:textAppearance="?android:attr/textAppearanceMedium" 75 android:maxLines="2" 76 android:ellipsize="end" /> 77 78 <TextView android:id="@+id/subtitle" 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:textAppearance="?android:attr/textAppearanceSmall" 82 android:visibility="gone" 83 android:singleLine="true" 84 android:ellipsize="end" /> 85 </LinearLayout> 86</RelativeLayout> 87