Michael Kolb | f205560 | 2011-04-09 17:20:03 -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 | <LinearLayout |
| 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 19 | android:id="@+id/tab_view" |
| 20 | android:layout_width="wrap_content" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:orientation="vertical" |
| 23 | android:padding="4dip" |
| 24 | android:focusable="false" |
| 25 | android:background="@drawable/nav_tab_bg"> |
| 26 | <LinearLayout |
| 27 | android:id="@+id/titlebar" |
| 28 | android:orientation="horizontal" |
| 29 | android:layout_width="match_parent" |
| 30 | android:layout_height="44dip" > |
| 31 | <ImageView |
| 32 | android:id="@+id/favicon" |
| 33 | android:layout_width="22dip" |
| 34 | android:layout_height="22dip" |
| 35 | android:layout_marginLeft="4dip" |
| 36 | android:layout_marginRight="4dip" |
| 37 | android:background="@color/white" |
| 38 | android:scaleType="center" |
| 39 | android:src="@drawable/app_web_browser_sm" |
| 40 | android:layout_gravity="center_vertical" /> |
| 41 | <TextView |
| 42 | android:id="@+id/title" |
| 43 | android:layout_width="0dip" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_weight="1.0" |
| 46 | android:textSize="14dip" |
| 47 | android:textColor="@color/white" |
| 48 | android:singleLine="true" |
| 49 | android:ellipsize="end" |
| 50 | android:lines="1" |
| 51 | android:scrollHorizontally="true" |
| 52 | android:hint="@string/search_hint" |
| 53 | android:layout_gravity="center_vertical" /> |
| 54 | <ImageButton |
| 55 | android:id="@+id/closetab" |
| 56 | android:src="@drawable/ic_stop_holo_dark" |
| 57 | android:layout_width="wrap_content" |
| 58 | android:layout_height="match_parent" |
| 59 | android:layout_gravity="center_vertical" |
| 60 | android:paddingLeft="4dip" |
| 61 | android:background="@drawable/bookmark_thumb_selector" |
| 62 | /> |
| 63 | </LinearLayout> |
| 64 | <ImageView |
| 65 | android:id="@+id/content" |
| 66 | android:layout_width="wrap_content" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:adjustViewBounds="true" |
| 69 | android:scaleType="fitXY" /> |
| 70 | </LinearLayout> |