blob: 2f8a09d157f6138725a08f0ca578fc950acd1490 [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"
31 android:scaleType="center"
32 android:layout_width="20dip"
33 android:layout_height="20dip"
Leon Scroggins89c6d362009-07-15 16:54:37 -040034 android:layout_alignBottom="@+id/thumb"
35 android:background="@color/white"
Leon Scroggins266ef432009-07-07 11:25:28 -040036 />
Leon Scroggins89c6d362009-07-15 16:54:37 -040037 <LinearLayout android:id="@+id/holder"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040038 android:layout_height="wrap_content"
Leon Scroggins89c6d362009-07-15 16:54:37 -040039 android:layout_width="fill_parent"
40 android:orientation="horizontal"
41 android:background="#cc000000"
42 android:gravity="center"
43 android:layout_alignBottom="@+id/thumb"
44 >
45 <ImageView
46 android:layout_height="wrap_content"
47 android:layout_width="wrap_content"
48 android:layout_marginTop="3dip"
49 android:layout_marginBottom="3dip"
50 android:src="@drawable/ic_tab_browser_bookmark_selected"
51 />
52 <TextView
53 android:layout_height="wrap_content"
54 android:layout_width="wrap_content"
55 android:textAppearance="?android:attr/textAppearanceSmall"
56 android:textStyle="bold"
57 android:textColor="@color/white"
58 android:text="@string/add_bookmark_short"
59 />
60 </LinearLayout>
61 <!-- Keep the width in sync with BrowserBookmarksPage and
62 BrowserActivity.updateScreenshot -->
63 <TextView android:id="@+id/label"
64 android:layout_width="100dip"
65 android:layout_height="wrap_content"
66 android:layout_below="@+id/thumb"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040067 android:layout_gravity="bottom"
Leon Scroggins266ef432009-07-07 11:25:28 -040068 android:textAppearance="?android:attr/textAppearanceSmall"
69 android:textStyle="bold"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040070 android:textColor="@color/white"
71 android:maxLines="1"
72 android:paddingTop="3dip"
73 android:paddingBottom="3dip"
74 android:paddingLeft="2dip"
75 android:paddingRight="2dip"
76 android:scrollHorizontally="true"
Leon Scroggins266ef432009-07-07 11:25:28 -040077 android:ellipsize="marquee"
78 />
Leon Scroggins89c6d362009-07-15 16:54:37 -040079</RelativeLayout>