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" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 18 | android:layout_width="match_parent" |
| 19 | android:layout_height="match_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 | |
John Reck | b3417f0 | 2011-01-14 11:01:05 -0800 | [diff] [blame] | 24 | <ImageView |
| 25 | android:id="@+id/thumb" |
Leon Scroggins | f855161 | 2009-09-24 16:06:02 -0400 | [diff] [blame] | 26 | android:src="@drawable/browser_thumbnail" |
Jeff Hamilton | f302637 | 2010-08-19 00:12:27 -0500 | [diff] [blame] | 27 | android:scaleType="centerCrop" |
| 28 | android:layout_height="@dimen/bookmarkThumbnailHeight" |
| 29 | android:layout_width="@dimen/bookmarkThumbnailWidth" |
John Reck | b3417f0 | 2011-01-14 11:01:05 -0800 | [diff] [blame] | 30 | android:layout_centerHorizontal="true" |
| 31 | android:background="@drawable/border_thumb_bookmarks_widget_holo" |
| 32 | /> |
| 33 | |
| 34 | <ImageView |
| 35 | android:id="@+id/divider" |
| 36 | android:src="?android:attr/dividerVertical" |
| 37 | android:layout_width="wrap_content" |
| 38 | android:layout_height="24dip" |
| 39 | android:layout_below="@+id/thumb" |
| 40 | android:layout_alignLeft="@+id/thumb" |
| 41 | android:scaleType="fitXY" |
| 42 | android:layout_marginTop="12dip" |
Leon Scroggins | 266ef43 | 2009-07-07 11:25:28 -0400 | [diff] [blame] | 43 | /> |
| 44 | |
Leon Scroggins | 8b4ea19 | 2009-09-21 19:05:49 -0400 | [diff] [blame] | 45 | <TextView android:id="@+id/label" |
Romain Guy | 15b8ec6 | 2010-01-08 15:06:43 -0800 | [diff] [blame] | 46 | android:layout_width="match_parent" |
John Reck | b3417f0 | 2011-01-14 11:01:05 -0800 | [diff] [blame] | 47 | android:layout_height="match_parent" |
| 48 | android:layout_toRightOf="@id/divider" |
| 49 | android:layout_alignTop="@id/divider" |
| 50 | android:layout_alignBottom="@id/divider" |
Leon Scroggins | f855161 | 2009-09-24 16:06:02 -0400 | [diff] [blame] | 51 | android:layout_alignRight="@+id/thumb" |
John Reck | b3417f0 | 2011-01-14 11:01:05 -0800 | [diff] [blame] | 52 | android:paddingLeft="8dip" |
| 53 | android:paddingRight="2dip" |
| 54 | android:gravity="center_vertical" |
| 55 | android:singleLine="true" |
| 56 | android:ellipsize="marquee" |
| 57 | android:typeface="sans" |
| 58 | android:textSize="14sp" |
| 59 | android:textColor="#AAAAAA" |
Leon Scroggins | 8b4ea19 | 2009-09-21 19:05:49 -0400 | [diff] [blame] | 60 | /> |
| 61 | |
Leon Scroggins | 89c6d36 | 2009-07-15 16:54:37 -0400 | [diff] [blame] | 62 | </RelativeLayout> |