blob: 8ffb73dc9a38cd4dc432b68425a765e2c9322d01 [file] [log] [blame]
Leon Scroggins0a64ba52009-09-08 15:35:33 -04001<?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 Guy15b8ec62010-01-08 15:06:43 -080020 android:layout_width="match_parent"
Leon Scroggins0a64ba52009-09-08 15:35:33 -040021 android:orientation="horizontal"
22 android:gravity="center_vertical"
John Reck18e93f72011-03-21 11:46:09 -070023 android:paddingLeft="8dip"
John Reck88a42b72011-03-21 16:30:12 -070024 android:paddingTop="4dip"
25 android:paddingBottom="4dip"
Leon Scroggins0a64ba52009-09-08 15:35:33 -040026 >
John Reck88a42b72011-03-21 16:30:12 -070027 <RelativeLayout
28 android:id="@+id/list_item"
Leon Scroggins0a64ba52009-09-08 15:35:33 -040029 android:layout_width="0dip"
Leon Scroggins0a64ba52009-09-08 15:35:33 -040030 android:layout_weight="1"
John Reck88a42b72011-03-21 16:30:12 -070031 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 Guy15b8ec62010-01-08 15:06:43 -080041 android:layout_width="match_parent"
Leon Scroggins0a64ba52009-09-08 15:35:33 -040042 android:layout_height="wrap_content"
John Reck88a42b72011-03-21 16:30:12 -070043 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 Scrogginsb17d2eb2009-09-11 11:12:58 -040068 <View android:id="@+id/divider"
John Reck18e93f72011-03-21 11:46:09 -070069 android:background="?android:attr/dividerVertical"
70 android:layout_width="1dp"
Romain Guy15b8ec62010-01-08 15:06:43 -080071 android:layout_height="match_parent"
Leon Scrogginsb17d2eb2009-09-11 11:12:58 -040072 android:layout_marginLeft="8dip"
73 android:layout_marginTop="5dip"
74 android:layout_marginBottom="5dip"
75 />
Leon Scrogginsa3315562009-09-18 14:21:08 -040076 <view class="com.android.browser.ActiveTabsPage$CloseHolder" android:id="@+id/close"
Leon Scroggins0a64ba52009-09-08 15:35:33 -040077 android:layout_width="wrap_content"
Romain Guy15b8ec62010-01-08 15:06:43 -080078 android:layout_height="match_parent"
John Reck18e93f72011-03-21 11:46:09 -070079 android:paddingLeft="12dip"
80 android:paddingRight="12dip"
81 android:background="@drawable/bookmark_thumb_selector"
82 android:src="@drawable/ic_close_window_holo_dark"
Leon Scrogginsa3315562009-09-18 14:21:08 -040083 android:scaleType="center"
Leon Scroggins0a64ba52009-09-08 15:35:33 -040084 />
85</LinearLayout>