blob: 8bc1efb3b9f11f5a38265018011344ca948809af [file] [log] [blame]
John Reck1537b772011-01-11 15:36:01 -08001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2010 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
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:id="@+id/list_item"
20 android:layout_width="match_parent"
21 android:layout_height="wrap_content">
22 <ImageView
23 android:id="@+id/thumb"
John Reck99c6d332011-02-01 12:57:06 -080024 android:src="@drawable/thumbnail_bookmarks_widget_no_bookmark_holo"
John Reck1537b772011-01-11 15:36:01 -080025 android:layout_width="match_parent"
26 android:layout_height="@dimen/widgetThumbnailHeight"
27 android:scaleType="centerCrop"
28 android:cropToPadding="true"
29 android:background="@drawable/border_thumb_bookmarks_widget_holo" />
30 <LinearLayout
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:layout_alignBottom="@id/thumb"
34 android:background="@drawable/overlay_url_bookmark_widget_holo"
35 android:layout_marginLeft="2dip"
36 android:layout_marginRight="2dip"
37 android:layout_marginBottom="2dip">
38 <ImageView
39 android:id="@+id/favicon"
40 android:src="@drawable/app_web_browser_sm"
41 android:layout_width="@dimen/favicon_size"
42 android:layout_height="@dimen/favicon_size"
43 android:layout_gravity="center_vertical"
44 android:layout_marginLeft="4dip"
45 android:layout_marginRight="8dip"
46 android:layout_marginTop="4dip"
47 android:layout_marginBottom="4dip"
48 android:scaleType="centerInside" />
49 <TextView
50 android:id="@+id/label"
51 android:layout_width="match_parent"
52 android:layout_height="wrap_content"
53 android:layout_gravity="center_vertical"
54 android:singleLine="true"
55 android:ellipsize="end"
John Reckdbf64e82011-03-16 11:26:26 -070056 android:textSize="12sp"
John Reck1537b772011-01-11 15:36:01 -080057 android:typeface="sans"
John Reck1537b772011-01-11 15:36:01 -080058 android:textColor="@android:color/white" />
59 </LinearLayout>
60</RelativeLayout>