Home | History | Annotate | Download | only in layout
      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/main"
     20     android:layout_width="wrap_content"
     21     android:layout_height="wrap_content"
     22     android:orientation="vertical"
     23     android:background="@drawable/nav_tab_bg"
     24     android:focusable="false">
     25     <LinearLayout
     26         android:id="@+id/titlebar"
     27         android:orientation="horizontal"
     28         android:layout_width="match_parent"
     29         android:layout_height="@dimen/nav_tab_titleheight"
     30         android:layout_gravity="center_horizontal"
     31         android:paddingLeft="8dip" >
     32         <TextView
     33             android:id="@+id/title"
     34             android:layout_width="0dip"
     35             android:layout_height="match_parent"
     36             android:layout_weight="1.0"
     37             android:gravity="center_vertical"
     38             android:singleLine="true"
     39             android:ellipsize="end"
     40             android:lines="1"
     41             android:textAppearance="?android:attr/textAppearanceSmall"
     42             android:scrollHorizontally="true"
     43             android:drawablePadding="8dip" />
     44         <ImageView
     45             android:id="@+id/closetab"
     46             android:src="@drawable/ic_tab_close"
     47             android:layout_gravity="center_vertical"
     48             android:layout_width="wrap_content"
     49             android:layout_height="match_parent"
     50             android:paddingRight="16dip"
     51             android:contentDescription="@string/accessibility_button_closetab"
     52             style="@style/HoloButton" />
     53     </LinearLayout>
     54     <ImageView
     55         android:id="@+id/tab_view"
     56         android:src="@drawable/ic_stop_holo_dark"
     57         android:layout_width="@dimen/nav_tab_width"
     58         android:layout_height="@dimen/nav_tab_height"
     59         android:paddingLeft="2dip"
     60         android:paddingRight="2dip"
     61         android:focusable="false" />
     62 </LinearLayout>
     63