blob: c1e0cd266e88465f158760c64c2f63d4cc6b83bc [file] [log] [blame]
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -04001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 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
Leon Scroggins89c6d362009-07-15 16:54:37 -040017<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040018 android:layout_width="fill_parent"
19 android:orientation="vertical"
20 android:padding="4dip"
Leon Scroggins266ef432009-07-07 11:25:28 -040021 >
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040022
23 <ImageView android:id="@+id/thumb"
Leon Scroggins266ef432009-07-07 11:25:28 -040024 android:src="@drawable/blank"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040025 android:scaleType="center"
Leon Scroggins89c6d362009-07-15 16:54:37 -040026 android:layout_width="100dip"
27 android:layout_height="80dip"
Leon Scroggins266ef432009-07-07 11:25:28 -040028 />
29
Leon Scroggins266ef432009-07-07 11:25:28 -040030 <ImageView android:id="@+id/fav"
Leon Scroggins391bae02009-07-28 16:33:53 -040031 android:scaleType="fitCenter"
Leon Scroggins266ef432009-07-07 11:25:28 -040032 android:layout_width="20dip"
33 android:layout_height="20dip"
Leon Scroggins391bae02009-07-28 16:33:53 -040034 android:padding="2dip"
Leon Scroggins89c6d362009-07-15 16:54:37 -040035 android:layout_alignBottom="@+id/thumb"
Leon Scroggins391bae02009-07-28 16:33:53 -040036 android:background="@drawable/fav_icn_background"
Leon Scroggins266ef432009-07-07 11:25:28 -040037 />
Leon Scroggins89c6d362009-07-15 16:54:37 -040038 <LinearLayout android:id="@+id/holder"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040039 android:layout_height="wrap_content"
Leon Scroggins89c6d362009-07-15 16:54:37 -040040 android:layout_width="fill_parent"
41 android:orientation="horizontal"
42 android:background="#cc000000"
43 android:gravity="center"
44 android:layout_alignBottom="@+id/thumb"
45 >
46 <ImageView
47 android:layout_height="wrap_content"
48 android:layout_width="wrap_content"
49 android:layout_marginTop="3dip"
50 android:layout_marginBottom="3dip"
51 android:src="@drawable/ic_tab_browser_bookmark_selected"
52 />
53 <TextView
54 android:layout_height="wrap_content"
55 android:layout_width="wrap_content"
56 android:textAppearance="?android:attr/textAppearanceSmall"
57 android:textStyle="bold"
58 android:textColor="@color/white"
59 android:text="@string/add_bookmark_short"
60 />
61 </LinearLayout>
62 <!-- Keep the width in sync with BrowserBookmarksPage and
63 BrowserActivity.updateScreenshot -->
64 <TextView android:id="@+id/label"
65 android:layout_width="100dip"
66 android:layout_height="wrap_content"
67 android:layout_below="@+id/thumb"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040068 android:layout_gravity="bottom"
Leon Scroggins266ef432009-07-07 11:25:28 -040069 android:textAppearance="?android:attr/textAppearanceSmall"
70 android:textStyle="bold"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040071 android:textColor="@color/white"
72 android:maxLines="1"
73 android:paddingTop="3dip"
74 android:paddingBottom="3dip"
75 android:paddingLeft="2dip"
76 android:paddingRight="2dip"
77 android:scrollHorizontally="true"
Leon Scroggins266ef432009-07-07 11:25:28 -040078 android:ellipsize="marquee"
79 />
Leon Scroggins89c6d362009-07-15 16:54:37 -040080</RelativeLayout>