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 | |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 17 | <LinearLayout |
Michael Kolb | f205560 | 2011-04-09 17:20:03 -0700 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 19 | android:id="@+id/main" |
Michael Kolb | c3af067 | 2011-08-09 10:24:41 -0700 | [diff] [blame] | 20 | android:layout_width="wrap_content" |
Michael Kolb | 4bd767d | 2011-05-27 11:33:55 -0700 | [diff] [blame] | 21 | android:layout_height="wrap_content" |
Michael Kolb | f205560 | 2011-04-09 17:20:03 -0700 | [diff] [blame] | 22 | android:orientation="vertical" |
Michael Kolb | 9829b43 | 2011-06-04 13:29:00 -0700 | [diff] [blame] | 23 | android:background="@drawable/nav_tab_bg" |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 24 | android:focusable="false"> |
Michael Kolb | f205560 | 2011-04-09 17:20:03 -0700 | [diff] [blame] | 25 | <LinearLayout |
| 26 | android:id="@+id/titlebar" |
| 27 | android:orientation="horizontal" |
| 28 | android:layout_width="match_parent" |
Michael Kolb | 9829b43 | 2011-06-04 13:29:00 -0700 | [diff] [blame] | 29 | android:layout_height="48dip" |
Michael Kolb | 4bd767d | 2011-05-27 11:33:55 -0700 | [diff] [blame] | 30 | android:layout_gravity="center_horizontal" |
John Reck | 502a353 | 2011-08-16 14:21:46 -0700 | [diff] [blame] | 31 | android:paddingLeft="8dip" > |
Michael Kolb | f205560 | 2011-04-09 17:20:03 -0700 | [diff] [blame] | 32 | <TextView |
| 33 | android:id="@+id/title" |
| 34 | android:layout_width="0dip" |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 35 | android:layout_height="match_parent" |
Michael Kolb | f205560 | 2011-04-09 17:20:03 -0700 | [diff] [blame] | 36 | android:layout_weight="1.0" |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 37 | android:gravity="center_vertical" |
Michael Kolb | f205560 | 2011-04-09 17:20:03 -0700 | [diff] [blame] | 38 | android:singleLine="true" |
| 39 | android:ellipsize="end" |
| 40 | android:lines="1" |
Michael Kolb | 9829b43 | 2011-06-04 13:29:00 -0700 | [diff] [blame] | 41 | android:textAppearance="?android:attr/textAppearanceSmall" |
John Reck | 502a353 | 2011-08-16 14:21:46 -0700 | [diff] [blame] | 42 | android:scrollHorizontally="true" |
| 43 | android:drawablePadding="8dip" /> |
Michael Kolb | 9829b43 | 2011-06-04 13:29:00 -0700 | [diff] [blame] | 44 | <ImageView |
| 45 | android:id="@+id/closetab" |
| 46 | android:src="@drawable/ic_stop_holo_dark" |
| 47 | android:layout_gravity="center_vertical" |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 48 | android:layout_width="wrap_content" |
Michael Kolb | dbcd172 | 2011-07-26 13:37:52 -0700 | [diff] [blame] | 49 | android:layout_height="match_parent" |
Michael Kolb | e5d7a66 | 2011-08-02 15:30:39 -0700 | [diff] [blame] | 50 | android:paddingRight="16dip" |
Michael Kolb | 30adae6 | 2011-07-29 13:37:05 -0700 | [diff] [blame] | 51 | android:contentDescription="@string/accessibility_button_closetab" |
Michael Kolb | dbcd172 | 2011-07-26 13:37:52 -0700 | [diff] [blame] | 52 | style="@style/HoloButton" /> |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 53 | </LinearLayout> |
Michael Kolb | 9ef259a | 2011-07-12 15:33:08 -0700 | [diff] [blame] | 54 | <ImageView |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 55 | android:id="@+id/tab_view" |
Michael Kolb | c3af067 | 2011-08-09 10:24:41 -0700 | [diff] [blame] | 56 | android:src="@drawable/ic_stop_holo_dark" |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 57 | android:layout_width="@dimen/nav_tab_width" |
| 58 | android:layout_height="@dimen/nav_tab_height" |
Michael Kolb | e5d7a66 | 2011-08-02 15:30:39 -0700 | [diff] [blame] | 59 | android:paddingLeft="2dip" |
| 60 | android:paddingRight="2dip" |
Michael Kolb | 9ef259a | 2011-07-12 15:33:08 -0700 | [diff] [blame] | 61 | android:focusable="false" /> |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 62 | </LinearLayout> |