blob: 439eb89c29f2e89b106e9bff0ac88a6c64f46c53 [file] [log] [blame]
Michael Kolbf2055602011-04-09 17:20:03 -07001<?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
Michael Kolb08a687a2011-04-22 16:13:02 -070017<com.android.browser.view.TabHolderView
Michael Kolbf2055602011-04-09 17:20:03 -070018 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"
John Reckadc921f2011-04-27 10:11:03 -070030 android:layout_height="@dimen/toolbar_height" >
Michael Kolbf2055602011-04-09 17:20:03 -070031 <ImageView
32 android:id="@+id/favicon"
Michael Kolb5a4372f2011-04-29 13:53:10 -070033 android:layout_width="20dip"
34 android:layout_height="20dip"
Michael Kolbf2055602011-04-09 17:20:03 -070035 android:layout_marginLeft="4dip"
36 android:layout_marginRight="4dip"
Michael Kolbf2055602011-04-09 17:20:03 -070037 android:layout_gravity="center_vertical" />
38 <TextView
39 android:id="@+id/title"
40 android:layout_width="0dip"
41 android:layout_height="wrap_content"
42 android:layout_weight="1.0"
43 android:textSize="14dip"
44 android:textColor="@color/white"
45 android:singleLine="true"
46 android:ellipsize="end"
47 android:lines="1"
48 android:scrollHorizontally="true"
49 android:hint="@string/search_hint"
50 android:layout_gravity="center_vertical" />
51 <ImageButton
52 android:id="@+id/closetab"
53 android:src="@drawable/ic_stop_holo_dark"
54 android:layout_width="wrap_content"
55 android:layout_height="match_parent"
56 android:layout_gravity="center_vertical"
57 android:paddingLeft="4dip"
58 android:background="@drawable/bookmark_thumb_selector"
59 />
60 </LinearLayout>
61 <ImageView
62 android:id="@+id/content"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content"
65 android:adjustViewBounds="true"
66 android:scaleType="fitXY" />
John Reckadc921f2011-04-27 10:11:03 -070067</com.android.browser.view.TabHolderView>