John Reck | df63d2f | 2010-10-29 11:42:55 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2010 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 | <LinearLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:layout_width="match_parent" |
| 20 | android:layout_height="match_parent" |
| 21 | android:orientation="vertical" |
John Reck | 5f133e0 | 2010-11-12 11:47:28 -0800 | [diff] [blame] | 22 | android:background="@null" |
John Reck | df63d2f | 2010-10-29 11:42:55 -0700 | [diff] [blame] | 23 | android:focusable="true" |
| 24 | android:clickable="true"> |
| 25 | <LinearLayout |
| 26 | android:id="@+id/header" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="wrap_content" |
| 29 | android:orientation="horizontal" |
| 30 | android:padding="8dip" |
John Reck | 5f133e0 | 2010-11-12 11:47:28 -0800 | [diff] [blame] | 31 | android:background="@color/bookmarkWidgetHeader"> |
John Reck | df63d2f | 2010-10-29 11:42:55 -0700 | [diff] [blame] | 32 | <ImageView |
| 33 | android:id="@+id/logo" |
| 34 | android:layout_width="32dp" |
| 35 | android:layout_height="32dp" |
Ying Wang | 79697cb | 2010-11-23 11:17:46 -0800 | [diff] [blame] | 36 | android:src="@mipmap/ic_launcher_browser" /> |
John Reck | df63d2f | 2010-10-29 11:42:55 -0700 | [diff] [blame] | 37 | <TextView |
| 38 | android:layout_width="wrap_content" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:layout_gravity="center_vertical" |
| 41 | android:text="@string/tab_bookmarks" |
| 42 | android:textAppearance="?android:attr/textAppearanceMedium" |
John Reck | df63d2f | 2010-10-29 11:42:55 -0700 | [diff] [blame] | 43 | android:paddingLeft="8dip" /> |
| 44 | </LinearLayout> |
| 45 | <ListView |
| 46 | android:id="@+id/bookmarks_list" |
| 47 | android:layout_width="match_parent" |
| 48 | android:layout_height="match_parent" |
John Reck | 5f133e0 | 2010-11-12 11:47:28 -0800 | [diff] [blame] | 49 | android:background="@color/bookmarkWidgetItemBackground" |
| 50 | android:cacheColorHint="@color/bookmarkWidgetItemBackground" |
| 51 | android:dividerHeight="1px" |
| 52 | android:divider="@color/bookmarkWidgetDivider" /> |
John Reck | df63d2f | 2010-10-29 11:42:55 -0700 | [diff] [blame] | 53 | </LinearLayout> |