John Reck | 2bc8042 | 2011-06-30 15:11:49 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2011 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 |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="wrap_content" |
| 20 | android:layout_height="wrap_content" |
| 21 | android:padding="@dimen/combo_horizontalSpacing"> |
| 22 | <ImageView |
| 23 | android:id="@+id/thumb" |
| 24 | android:src="@drawable/thumbnail_bookmarks_widget_no_bookmark_holo" |
| 25 | android:layout_width="@dimen/bookmarkThumbnailWidth" |
| 26 | android:layout_height="@dimen/bookmarkThumbnailHeight" |
| 27 | android:scaleType="centerCrop" |
| 28 | android:cropToPadding="true" |
| 29 | android:background="@drawable/border_thumb_bookmarks_widget_holo" /> |
| 30 | <TextView |
John Reck | 027ab22 | 2011-07-29 13:29:35 -0700 | [diff] [blame] | 31 | android:id="@+id/date" |
John Reck | 2bc8042 | 2011-06-30 15:11:49 -0700 | [diff] [blame] | 32 | android:layout_width="wrap_content" |
| 33 | android:layout_height="wrap_content" |
| 34 | android:layout_alignBottom="@id/thumb" |
| 35 | android:layout_alignLeft="@id/thumb" |
| 36 | android:layout_alignRight="@id/thumb" |
| 37 | android:background="@drawable/overlay_url_bookmark_widget_holo" |
| 38 | android:singleLine="true" |
| 39 | android:ellipsize="end" |
John Reck | 027ab22 | 2011-07-29 13:29:35 -0700 | [diff] [blame] | 40 | android:textSize="14sp" |
John Reck | 2bc8042 | 2011-06-30 15:11:49 -0700 | [diff] [blame] | 41 | android:typeface="sans" |
John Reck | 027ab22 | 2011-07-29 13:29:35 -0700 | [diff] [blame] | 42 | android:textColor="#AAAAAA" |
John Reck | 8cc9235 | 2011-07-06 17:41:52 -0700 | [diff] [blame] | 43 | android:paddingLeft="6dip" |
| 44 | android:paddingRight="2dip" |
| 45 | android:gravity="center_vertical" /> |
John Reck | 027ab22 | 2011-07-29 13:29:35 -0700 | [diff] [blame] | 46 | <TextView android:id="@+id/title" |
| 47 | android:layout_width="wrap_content" |
| 48 | android:layout_height="wrap_content" |
| 49 | android:layout_below="@+id/thumb" |
| 50 | android:layout_alignLeft="@+id/thumb" |
| 51 | android:layout_alignRight="@+id/thumb" |
| 52 | android:layout_marginTop="6dip" |
| 53 | android:paddingLeft="8dip" |
| 54 | android:gravity="center_vertical" |
| 55 | android:typeface="sans" |
| 56 | android:textSize="12sp" |
| 57 | android:textColor="#AAAAAA" |
| 58 | android:lines="2" /> |
John Reck | 2bc8042 | 2011-06-30 15:11:49 -0700 | [diff] [blame] | 59 | <ImageView |
| 60 | android:id="@+id/divider" |
| 61 | android:src="?android:attr/dividerVertical" |
| 62 | android:layout_width="wrap_content" |
John Reck | 2bc8042 | 2011-06-30 15:11:49 -0700 | [diff] [blame] | 63 | android:layout_height="wrap_content" |
John Reck | 027ab22 | 2011-07-29 13:29:35 -0700 | [diff] [blame] | 64 | android:layout_alignLeft="@+id/title" |
| 65 | android:layout_alignTop="@+id/title" |
| 66 | android:layout_alignBottom="@+id/title" |
| 67 | android:scaleType="fitXY" /> |
John Reck | 2bc8042 | 2011-06-30 15:11:49 -0700 | [diff] [blame] | 68 | </RelativeLayout> |