blob: 763f9c0e19457840b2f965a14c26659977296818 [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 Kolb2814a362011-05-19 15:49:41 -070017<LinearLayout
Michael Kolbf2055602011-04-09 17:20:03 -070018 xmlns:android="http://schemas.android.com/apk/res/android"
Michael Kolb2814a362011-05-19 15:49:41 -070019 android:id="@+id/main"
Michael Kolb4bd767d2011-05-27 11:33:55 -070020 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
Michael Kolbf2055602011-04-09 17:20:03 -070022 android:orientation="vertical"
Michael Kolb9829b432011-06-04 13:29:00 -070023 android:background="@drawable/nav_tab_bg"
Michael Kolb2814a362011-05-19 15:49:41 -070024 android:focusable="false">
Michael Kolbf2055602011-04-09 17:20:03 -070025 <LinearLayout
26 android:id="@+id/titlebar"
27 android:orientation="horizontal"
28 android:layout_width="match_parent"
Michael Kolb9829b432011-06-04 13:29:00 -070029 android:layout_height="48dip"
Michael Kolb4bd767d2011-05-27 11:33:55 -070030 android:layout_gravity="center_horizontal"
Michael Kolbdbcd1722011-07-26 13:37:52 -070031 android:paddingLeft="16dip" >
Michael Kolbf2055602011-04-09 17:20:03 -070032 <TextView
33 android:id="@+id/title"
34 android:layout_width="0dip"
Michael Kolb2814a362011-05-19 15:49:41 -070035 android:layout_height="match_parent"
Michael Kolbf2055602011-04-09 17:20:03 -070036 android:layout_weight="1.0"
Michael Kolb2814a362011-05-19 15:49:41 -070037 android:gravity="center_vertical"
Michael Kolbf2055602011-04-09 17:20:03 -070038 android:singleLine="true"
39 android:ellipsize="end"
40 android:lines="1"
Michael Kolb9829b432011-06-04 13:29:00 -070041 android:textAppearance="?android:attr/textAppearanceSmall"
42 android:scrollHorizontally="true" />
43 <ImageView
44 android:id="@+id/closetab"
45 android:src="@drawable/ic_stop_holo_dark"
46 android:layout_gravity="center_vertical"
Michael Kolb2814a362011-05-19 15:49:41 -070047 android:layout_width="wrap_content"
Michael Kolbdbcd1722011-07-26 13:37:52 -070048 android:layout_height="match_parent"
Michael Kolbe5d7a662011-08-02 15:30:39 -070049 android:paddingRight="16dip"
Michael Kolb30adae62011-07-29 13:37:05 -070050 android:contentDescription="@string/accessibility_button_closetab"
Michael Kolbdbcd1722011-07-26 13:37:52 -070051 style="@style/HoloButton" />
Michael Kolb2814a362011-05-19 15:49:41 -070052 </LinearLayout>
Michael Kolb9ef259a2011-07-12 15:33:08 -070053 <ImageView
Michael Kolb2814a362011-05-19 15:49:41 -070054 android:id="@+id/tab_view"
55 android:layout_width="@dimen/nav_tab_width"
56 android:layout_height="@dimen/nav_tab_height"
Michael Kolbe5d7a662011-08-02 15:30:39 -070057 android:paddingLeft="2dip"
58 android:paddingRight="2dip"
Michael Kolb4bd767d2011-05-27 11:33:55 -070059 android:layout_gravity="center_horizontal"
Michael Kolb9ef259a2011-07-12 15:33:08 -070060 android:focusable="false" />
Michael Kolb2814a362011-05-19 15:49:41 -070061</LinearLayout>