bookmark_thumbnail.xml revision f85516172840450a4d1270b658905dc1649ceaf2
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:layout_height="fill_parent" 20 android:orientation="vertical" 21 android:padding="0dip" 22 > 23 24 <ImageView android:id="@+id/thumb" 25 android:src="@drawable/browser_thumbnail" 26 android:scaleType="center" 27 android:layout_height="wrap_content" 28 android:layout_width="wrap_content" 29 android:layout_gravity="center" 30 /> 31 32 <!-- FIXME: Want to have a gradient over the thumb --> 33 34 <!-- This holds the star for addbookmark --> 35 <LinearLayout android:id="@+id/holder" 36 android:layout_height="fill_parent" 37 android:layout_width="fill_parent" 38 android:orientation="horizontal" 39 android:background="#99000000" 40 android:gravity="center" 41 android:layout_alignBottom="@+id/thumb" 42 android:layout_alignTop="@+id/thumb" 43 > 44 <ImageView 45 android:layout_height="wrap_content" 46 android:layout_width="wrap_content" 47 android:src="@drawable/ic_tab_browser_bookmark_selected" 48 /> 49 <TextView 50 android:layout_height="wrap_content" 51 android:layout_width="wrap_content" 52 android:textAppearance="?android:attr/textAppearanceSmall" 53 android:textStyle="bold" 54 android:textColor="@color/white" 55 android:text="@string/add_bookmark_short" 56 /> 57 </LinearLayout> 58 59 <TextView android:id="@+id/label" 60 android:layout_width="fill_parent" 61 android:layout_height="wrap_content" 62 android:layout_gravity="bottom" 63 android:textAppearance="?android:attr/textAppearanceSmall" 64 android:textStyle="bold" 65 android:textColor="@color/white" 66 android:maxLines="1" 67 android:paddingLeft="2dip" 68 android:paddingRight="2dip" 69 android:paddingTop="0dip" 70 android:paddingBottom="0dip" 71 android:layout_marginTop="0dip" 72 android:scrollHorizontally="true" 73 android:ellipsize="marquee" 74 android:layout_below="@+id/thumb" 75 android:layout_alignLeft="@+id/thumb" 76 android:layout_alignRight="@+id/thumb" 77 /> 78 79</RelativeLayout> 80