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" |
| 19 | android:orientation="vertical" |
| 20 | android:padding="4dip" |
Leon Scroggins | 266ef43 | 2009-07-07 11:25:28 -0400 | [diff] [blame] | 21 | > |
Leon Scroggins | b6b7f9e | 2009-06-18 12:05:28 -0400 | [diff] [blame] | 22 | |
Leon Scroggins | 0c78650 | 2009-08-04 16:04:55 -0400 | [diff] [blame] | 23 | <!-- 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 Scroggins | b6b7f9e | 2009-06-18 12:05:28 -0400 | [diff] [blame] | 41 | <ImageView android:id="@+id/thumb" |
Leon Scroggins | b40bf27 | 2009-09-14 18:43:27 -0400 | [diff] [blame] | 42 | android:src="@drawable/ic_launcher_shortcut_browser_bookmark" |
Leon Scroggins | b6b7f9e | 2009-06-18 12:05:28 -0400 | [diff] [blame] | 43 | android:scaleType="center" |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 44 | android:layout_width="100dip" |
| 45 | android:layout_height="80dip" |
Leon Scroggins | 0c78650 | 2009-08-04 16:04:55 -0400 | [diff] [blame] | 46 | android:background="@drawable/bookmark_shadow" |
| 47 | android:layout_below="@+id/label" |
Leon Scroggins | 266ef43 | 2009-07-07 11:25:28 -0400 | [diff] [blame] | 48 | /> |
| 49 | |
Leon Scroggins | 0c78650 | 2009-08-04 16:04:55 -0400 | [diff] [blame] | 50 | <!-- FIXME: Want to have a gradient over the thumb --> |
| 51 | |
| 52 | <!-- This holds the star for addbookmark --> |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 53 | <LinearLayout android:id="@+id/holder" |
Leon Scroggins | b6b7f9e | 2009-06-18 12:05:28 -0400 | [diff] [blame] | 54 | android:layout_height="wrap_content" |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 55 | 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 Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 77 | </RelativeLayout> |