Leon Scroggins | b6b7f9e | 2009-06-18 12:05:28 -0400 | [diff] [blame] | 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 | |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 17 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Leon Scroggins | b6b7f9e | 2009-06-18 12:05:28 -0400 | [diff] [blame] | 18 | android:layout_width="fill_parent" |
Leon Scroggins | f855161 | 2009-09-24 16:06:02 -0400 | [diff] [blame] | 19 | android:layout_height="fill_parent" |
Leon Scroggins | b6b7f9e | 2009-06-18 12:05:28 -0400 | [diff] [blame] | 20 | android:orientation="vertical" |
Leon Scroggins | 06ec5f2 | 2009-09-17 12:46:04 -0400 | [diff] [blame] | 21 | android:padding="0dip" |
Leon Scroggins | 266ef43 | 2009-07-07 11:25:28 -0400 | [diff] [blame] | 22 | > |
Leon Scroggins | b6b7f9e | 2009-06-18 12:05:28 -0400 | [diff] [blame] | 23 | |
| 24 | <ImageView android:id="@+id/thumb" |
Leon Scroggins | f855161 | 2009-09-24 16:06:02 -0400 | [diff] [blame] | 25 | android:src="@drawable/browser_thumbnail" |
Leon Scroggins | b6b7f9e | 2009-06-18 12:05:28 -0400 | [diff] [blame] | 26 | android:scaleType="center" |
Leon Scroggins | 06ec5f2 | 2009-09-17 12:46:04 -0400 | [diff] [blame] | 27 | android:layout_height="wrap_content" |
| 28 | android:layout_width="wrap_content" |
Leon Scroggins | f855161 | 2009-09-24 16:06:02 -0400 | [diff] [blame] | 29 | android:layout_gravity="center" |
Leon Scroggins | 266ef43 | 2009-07-07 11:25:28 -0400 | [diff] [blame] | 30 | /> |
| 31 | |
Leon Scroggins | 0c78650 | 2009-08-04 16:04:55 -0400 | [diff] [blame] | 32 | <!-- FIXME: Want to have a gradient over the thumb --> |
| 33 | |
| 34 | <!-- This holds the star for addbookmark --> |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 35 | <LinearLayout android:id="@+id/holder" |
Leon Scroggins | 8b4ea19 | 2009-09-21 19:05:49 -0400 | [diff] [blame] | 36 | android:layout_height="fill_parent" |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 37 | android:layout_width="fill_parent" |
| 38 | android:orientation="horizontal" |
Leon Scroggins | 06ec5f2 | 2009-09-17 12:46:04 -0400 | [diff] [blame] | 39 | android:background="#99000000" |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 40 | android:gravity="center" |
| 41 | android:layout_alignBottom="@+id/thumb" |
Leon Scroggins | 8b4ea19 | 2009-09-21 19:05:49 -0400 | [diff] [blame] | 42 | android:layout_alignTop="@+id/thumb" |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 43 | > |
| 44 | <ImageView |
| 45 | android:layout_height="wrap_content" |
| 46 | android:layout_width="wrap_content" |
Leon Scroggins | 5037b7b | 2009-09-25 15:47:05 -0400 | [diff] [blame^] | 47 | android:src="@drawable/ic_list_bookmark" |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 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> |
Leon Scroggins | 8b4ea19 | 2009-09-21 19:05:49 -0400 | [diff] [blame] | 58 | |
| 59 | <TextView android:id="@+id/label" |
Leon Scroggins | 06ec5f2 | 2009-09-17 12:46:04 -0400 | [diff] [blame] | 60 | android:layout_width="fill_parent" |
Leon Scroggins | 8b4ea19 | 2009-09-21 19:05:49 -0400 | [diff] [blame] | 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" |
Leon Scroggins | 8b4ea19 | 2009-09-21 19:05:49 -0400 | [diff] [blame] | 67 | android:paddingLeft="2dip" |
| 68 | android:paddingRight="2dip" |
Leon Scroggins | 06ec5f2 | 2009-09-17 12:46:04 -0400 | [diff] [blame] | 69 | android:paddingTop="0dip" |
| 70 | android:paddingBottom="0dip" |
| 71 | android:layout_marginTop="0dip" |
Leon Scroggins | 8b4ea19 | 2009-09-21 19:05:49 -0400 | [diff] [blame] | 72 | android:scrollHorizontally="true" |
| 73 | android:ellipsize="marquee" |
| 74 | android:layout_below="@+id/thumb" |
Leon Scroggins | f855161 | 2009-09-24 16:06:02 -0400 | [diff] [blame] | 75 | android:layout_alignLeft="@+id/thumb" |
| 76 | android:layout_alignRight="@+id/thumb" |
Leon Scroggins | 8b4ea19 | 2009-09-21 19:05:49 -0400 | [diff] [blame] | 77 | /> |
| 78 | |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 79 | </RelativeLayout> |