blob: 9a5915058b2bcd2045cc1be703b367a6373562fb [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 -->
25 <TextView android:id="@+id/label"
26 android:layout_width="100dip"
27 android:layout_height="wrap_content"
28 android:layout_gravity="bottom"
29 android:textAppearance="?android:attr/textAppearanceSmall"
30 android:textStyle="bold"
31 android:textColor="@color/white"
32 android:maxLines="1"
33 android:paddingTop="3dip"
34 android:paddingBottom="3dip"
35 android:paddingLeft="2dip"
36 android:paddingRight="2dip"
37 android:scrollHorizontally="true"
38 android:ellipsize="marquee"
39 />
40
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040041 <ImageView android:id="@+id/thumb"
Leon Scrogginsb40bf272009-09-14 18:43:27 -040042 android:src="@drawable/ic_launcher_shortcut_browser_bookmark"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040043 android:scaleType="center"
Leon Scroggins89c6d362009-07-15 16:54:37 -040044 android:layout_width="100dip"
45 android:layout_height="80dip"
Leon Scroggins0c786502009-08-04 16:04:55 -040046 android:background="@drawable/bookmark_shadow"
47 android:layout_below="@+id/label"
Leon Scroggins266ef432009-07-07 11:25:28 -040048 />
49
Leon Scroggins0c786502009-08-04 16:04:55 -040050 <!-- FIXME: Want to have a gradient over the thumb -->
51
52 <!-- This holds the star for addbookmark -->
Leon Scroggins89c6d362009-07-15 16:54:37 -040053 <LinearLayout android:id="@+id/holder"
Leon Scrogginsb6b7f9e2009-06-18 12:05:28 -040054 android:layout_height="wrap_content"
Leon Scroggins89c6d362009-07-15 16:54:37 -040055 android:layout_width="fill_parent"
56 android:orientation="horizontal"
57 android:background="#cc000000"
58 android:gravity="center"
59 android:layout_alignBottom="@+id/thumb"
60 >
61 <ImageView
62 android:layout_height="wrap_content"
63 android:layout_width="wrap_content"
64 android:layout_marginTop="3dip"
65 android:layout_marginBottom="3dip"
66 android:src="@drawable/ic_tab_browser_bookmark_selected"
67 />
68 <TextView
69 android:layout_height="wrap_content"
70 android:layout_width="wrap_content"
71 android:textAppearance="?android:attr/textAppearanceSmall"
72 android:textStyle="bold"
73 android:textColor="@color/white"
74 android:text="@string/add_bookmark_short"
75 />
76 </LinearLayout>
Leon Scroggins89c6d362009-07-15 16:54:37 -040077</RelativeLayout>