blob: 61ac50a89b7353b01675ea9ce4112b46bad0ff81 [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
Leon Scroggins0c786502009-08-04 16:04:55 -040023 <!-- Keep the width in sync with BrowserBookmarksPage and
24 BrowserActivity.updateScreenshot -->
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040025 <ImageView android:id="@+id/thumb"
Leon Scrogginsb40bf272009-09-14 18:43:27 -040026 android:src="@drawable/ic_launcher_shortcut_browser_bookmark"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040027 android:scaleType="center"
Leon Scroggins89c6d362009-07-15 16:54:37 -040028 android:layout_width="100dip"
29 android:layout_height="80dip"
Leon Scroggins0c786502009-08-04 16:04:55 -040030 android:background="@drawable/bookmark_shadow"
Leon Scroggins266ef432009-07-07 11:25:28 -040031 />
32
Leon Scroggins0c786502009-08-04 16:04:55 -040033 <!-- FIXME: Want to have a gradient over the thumb -->
34
35 <!-- This holds the star for addbookmark -->
Leon Scroggins89c6d362009-07-15 16:54:37 -040036 <LinearLayout android:id="@+id/holder"
Leon Scroggins8b4ea192009-09-21 19:05:49 -040037 android:layout_height="fill_parent"
Leon Scroggins89c6d362009-07-15 16:54:37 -040038 android:layout_width="fill_parent"
39 android:orientation="horizontal"
40 android:background="#cc000000"
41 android:gravity="center"
42 android:layout_alignBottom="@+id/thumb"
Leon Scroggins8b4ea192009-09-21 19:05:49 -040043 android:layout_alignTop="@+id/thumb"
Leon Scroggins89c6d362009-07-15 16:54:37 -040044 >
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>
Leon Scroggins8b4ea192009-09-21 19:05:49 -040061
62 <TextView android:id="@+id/label"
63 android:layout_width="100dip"
64 android:layout_height="wrap_content"
65 android:layout_gravity="bottom"
66 android:textAppearance="?android:attr/textAppearanceSmall"
67 android:textStyle="bold"
68 android:textColor="@color/white"
69 android:maxLines="1"
70 android:paddingTop="3dip"
71 android:paddingBottom="3dip"
72 android:paddingLeft="2dip"
73 android:paddingRight="2dip"
74 android:scrollHorizontally="true"
75 android:ellipsize="marquee"
76 android:layout_below="@+id/thumb"
77 />
78
Leon Scroggins89c6d362009-07-15 16:54:37 -040079</RelativeLayout>