Leon Scroggins | 0a64ba5 | 2009-09-08 15:35:33 -0400 | [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 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 | android:layout_height="wrap_content" |
| 19 | android:minHeight="?android:attr/listPreferredItemHeight" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 20 | android:layout_width="match_parent" |
Leon Scroggins | 0a64ba5 | 2009-09-08 15:35:33 -0400 | [diff] [blame] | 21 | android:orientation="horizontal" |
| 22 | android:gravity="center_vertical" |
John Reck | 18e93f7 | 2011-03-21 11:46:09 -0700 | [diff] [blame] | 23 | android:paddingLeft="8dip" |
John Reck | 88a42b7 | 2011-03-21 16:30:12 -0700 | [diff] [blame] | 24 | android:paddingTop="4dip" |
| 25 | android:paddingBottom="4dip" |
Leon Scroggins | 0a64ba5 | 2009-09-08 15:35:33 -0400 | [diff] [blame] | 26 | > |
John Reck | 88a42b7 | 2011-03-21 16:30:12 -0700 | [diff] [blame] | 27 | <RelativeLayout |
| 28 | android:id="@+id/list_item" |
Leon Scroggins | 0a64ba5 | 2009-09-08 15:35:33 -0400 | [diff] [blame] | 29 | android:layout_width="0dip" |
Leon Scroggins | 0a64ba5 | 2009-09-08 15:35:33 -0400 | [diff] [blame] | 30 | android:layout_weight="1" |
John Reck | 88a42b7 | 2011-03-21 16:30:12 -0700 | [diff] [blame] | 31 | android:layout_height="wrap_content" |
| 32 | android:background="@drawable/bookmark_list_favicon_bg"> |
| 33 | <ImageView |
| 34 | android:id="@+id/thumb" |
| 35 | android:src="@drawable/thumbnail_bookmarks_widget_no_bookmark_holo" |
| 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="@dimen/tab_view_thumbnail_height" |
| 38 | android:scaleType="fitXY" |
| 39 | android:cropToPadding="true" /> |
| 40 | <LinearLayout |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 41 | android:layout_width="match_parent" |
Leon Scroggins | 0a64ba5 | 2009-09-08 15:35:33 -0400 | [diff] [blame] | 42 | android:layout_height="wrap_content" |
John Reck | 88a42b7 | 2011-03-21 16:30:12 -0700 | [diff] [blame] | 43 | android:layout_alignBottom="@id/thumb" |
| 44 | android:background="@color/tabViewTitleBackground"> |
| 45 | <ImageView |
| 46 | android:id="@+id/favicon" |
| 47 | android:src="@drawable/app_web_browser_sm" |
| 48 | android:layout_width="@dimen/favicon_size" |
| 49 | android:layout_height="@dimen/favicon_size" |
| 50 | android:layout_gravity="center_vertical" |
| 51 | android:layout_marginLeft="4dip" |
| 52 | android:layout_marginRight="8dip" |
| 53 | android:layout_marginTop="4dip" |
| 54 | android:layout_marginBottom="4dip" |
| 55 | android:scaleType="fitXY" /> |
| 56 | <TextView |
| 57 | android:id="@+id/label" |
| 58 | android:layout_width="match_parent" |
| 59 | android:layout_height="wrap_content" |
| 60 | android:layout_gravity="center_vertical" |
| 61 | android:singleLine="true" |
| 62 | android:ellipsize="end" |
| 63 | android:textSize="12sp" |
| 64 | android:typeface="sans" |
| 65 | android:textColor="@android:color/white" /> |
| 66 | </LinearLayout> |
| 67 | </RelativeLayout> |
Leon Scroggins | b17d2eb | 2009-09-11 11:12:58 -0400 | [diff] [blame] | 68 | <View android:id="@+id/divider" |
John Reck | 18e93f7 | 2011-03-21 11:46:09 -0700 | [diff] [blame] | 69 | android:background="?android:attr/dividerVertical" |
| 70 | android:layout_width="1dp" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 71 | android:layout_height="match_parent" |
Leon Scroggins | b17d2eb | 2009-09-11 11:12:58 -0400 | [diff] [blame] | 72 | android:layout_marginLeft="8dip" |
| 73 | android:layout_marginTop="5dip" |
| 74 | android:layout_marginBottom="5dip" |
| 75 | /> |
Leon Scroggins | a331556 | 2009-09-18 14:21:08 -0400 | [diff] [blame] | 76 | <view class="com.android.browser.ActiveTabsPage$CloseHolder" android:id="@+id/close" |
Leon Scroggins | 0a64ba5 | 2009-09-08 15:35:33 -0400 | [diff] [blame] | 77 | android:layout_width="wrap_content" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 78 | android:layout_height="match_parent" |
John Reck | 18e93f7 | 2011-03-21 11:46:09 -0700 | [diff] [blame] | 79 | android:paddingLeft="12dip" |
| 80 | android:paddingRight="12dip" |
| 81 | android:background="@drawable/bookmark_thumb_selector" |
| 82 | android:src="@drawable/ic_close_window_holo_dark" |
Leon Scroggins | a331556 | 2009-09-18 14:21:08 -0400 | [diff] [blame] | 83 | android:scaleType="center" |
Leon Scroggins | 0a64ba5 | 2009-09-08 15:35:33 -0400 | [diff] [blame] | 84 | /> |
| 85 | </LinearLayout> |