Nicolas Roard | c570232 | 2009-09-14 20:39:08 +0100 | [diff] [blame] | 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" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 19 | android:layout_width="match_parent" |
Nicolas Roard | c570232 | 2009-09-14 20:39:08 +0100 | [diff] [blame] | 20 | android:layout_height="?android:attr/listPreferredItemHeight" |
Ben Murdoch | be9560d | 2009-11-09 09:52:21 -0800 | [diff] [blame] | 21 | android:gravity="center_vertical" |
Nicolas Roard | c570232 | 2009-09-14 20:39:08 +0100 | [diff] [blame] | 22 | android:padding="0dip"> |
| 23 | |
Sagar Dhawan | ca9ecfb | 2015-08-10 17:27:58 -0700 | [diff] [blame] | 24 | <com.android.browser.SiteTileView |
| 25 | android:id="@+id/icon" |
| 26 | android:layout_centerVertical="true" |
| 27 | android:layout_width="36dp" |
| 28 | android:layout_height="36dp" |
| 29 | android:layout_marginStart="6dip" |
| 30 | android:layout_marginEnd="6dip"/> |
Ben Murdoch | be9560d | 2009-11-09 09:52:21 -0800 | [diff] [blame] | 31 | <LinearLayout |
Nicolas Roard | c570232 | 2009-09-14 20:39:08 +0100 | [diff] [blame] | 32 | android:layout_width="wrap_content" |
| 33 | android:layout_height="wrap_content" |
Vivek Sekhar | ed791da | 2015-02-22 12:39:05 -0800 | [diff] [blame] | 34 | android:layout_toEndOf="@id/icon" |
| 35 | android:layout_toStartOf="@id/features" |
Ben Murdoch | be9560d | 2009-11-09 09:52:21 -0800 | [diff] [blame] | 36 | android:layout_centerVertical="true" |
Nicolas Roard | c570232 | 2009-09-14 20:39:08 +0100 | [diff] [blame] | 37 | android:layout_alignWithParentIfMissing="true" |
Ben Murdoch | be9560d | 2009-11-09 09:52:21 -0800 | [diff] [blame] | 38 | android:orientation="vertical"> |
Nicolas Roard | c570232 | 2009-09-14 20:39:08 +0100 | [diff] [blame] | 39 | |
Ben Murdoch | be9560d | 2009-11-09 09:52:21 -0800 | [diff] [blame] | 40 | <TextView android:id="@+id/title" |
| 41 | android:layout_width="wrap_content" |
| 42 | android:layout_height="wrap_content" |
| 43 | android:textAppearance="?android:attr/textAppearanceMedium" |
| 44 | android:maxLines="2" |
| 45 | android:ellipsize="end" /> |
Nicolas Roard | c570232 | 2009-09-14 20:39:08 +0100 | [diff] [blame] | 46 | |
Ben Murdoch | be9560d | 2009-11-09 09:52:21 -0800 | [diff] [blame] | 47 | <TextView android:id="@+id/subtitle" |
| 48 | android:layout_width="wrap_content" |
| 49 | android:layout_height="wrap_content" |
| 50 | android:textAppearance="?android:attr/textAppearanceSmall" |
| 51 | android:visibility="gone" |
| 52 | android:singleLine="true" |
| 53 | android:ellipsize="end" /> |
| 54 | </LinearLayout> |
Nicolas Roard | c570232 | 2009-09-14 20:39:08 +0100 | [diff] [blame] | 55 | </RelativeLayout> |