bookmark_thumbnail.xml revision 8b4ea19c5daa02088a615488d657e71e7f1e03ca
1<?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 17<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="fill_parent" 19 android:orientation="vertical" 20 android:padding="4dip" 21 > 22 23 <!-- Keep the width in sync with BrowserBookmarksPage and 24 BrowserActivity.updateScreenshot --> 25 <ImageView android:id="@+id/thumb" 26 android:src="@drawable/ic_launcher_shortcut_browser_bookmark" 27 android:scaleType="center" 28 android:layout_width="100dip" 29 android:layout_height="80dip" 30 android:background="@drawable/bookmark_shadow" 31 /> 32 33 <!-- FIXME: Want to have a gradient over the thumb --> 34 35 <!-- This holds the star for addbookmark --> 36 <LinearLayout android:id="@+id/holder" 37 android:layout_height="fill_parent" 38 android:layout_width="fill_parent" 39 android:orientation="horizontal" 40 android:background="#cc000000" 41 android:gravity="center" 42 android:layout_alignBottom="@+id/thumb" 43 android:layout_alignTop="@+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 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 79</RelativeLayout> 80