blob: 1bf4b8de5bafa7dda124ad77f3211c2502b92af6 [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"
Enrico Rosd6efa972014-12-02 19:49:59 -080019 android:id="@+id/nav_tab"
Michael Kolbc3af0672011-08-09 10:24:41 -070020 android:layout_width="wrap_content"
Michael Kolb4bd767d2011-05-27 11:33:55 -070021 android:layout_height="wrap_content"
jrizzoli5bba72a2015-08-28 22:03:53 +020022 android:orientation="vertical">
Michael Kolbf2055602011-04-09 17:20:03 -070023 <LinearLayout
jrizzoli5bba72a2015-08-28 22:03:53 +020024 android:layout_width="wrap_content"
25 android:layout_height="wrap_content"
26 android:orientation="vertical"
27 android:background="@drawable/card"
28 android:elevation="4dp"
29 android:focusable="false">
30 <LinearLayout
31 android:id="@+id/titlebar"
32 android:orientation="vertical"
Michael Kolb2814a362011-05-19 15:49:41 -070033 android:layout_width="wrap_content"
jrizzoli5bba72a2015-08-28 22:03:53 +020034 android:layout_height="wrap_content"
35 android:layout_gravity="center_horizontal"
36 android:paddingStart="8dp"
37 android:paddingEnd="8dp"
38 android:paddingTop="8dp"
39 android:paddingBottom="8dp">
40 <ImageView
41 android:id="@+id/tab_preview"
42 android:layout_width="@dimen/nav_tab_width"
43 android:layout_height="@dimen/nav_tab_height"
44 android:paddingStart="2dip"
45 android:paddingEnd="2dip"
46 android:focusable="false" />
47 <TextView
48 android:id="@+id/title"
49 android:layout_width="match_parent"
50 android:layout_height="@dimen/nav_tab_titleheight"
51 android:layout_weight="1.0"
52 android:layout_marginTop="4dp"
53 android:gravity="center_vertical"
54 android:singleLine="true"
55 android:ellipsize="end"
56 android:textAppearance="?android:attr/textAppearanceSmallInverse" />
57 </LinearLayout>
Michael Kolb2814a362011-05-19 15:49:41 -070058 </LinearLayout>
jrizzoli5bba72a2015-08-28 22:03:53 +020059 <FrameLayout
60 android:layout_width="match_parent"
61 android:layout_height="50dp"
62 android:background="@color/trasparent" />
Michael Kolb2814a362011-05-19 15:49:41 -070063</LinearLayout>