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" |
Enrico Ros | d6efa97 | 2014-12-02 19:49:59 -0800 | [diff] [blame] | 19 | android:id="@+id/nav_tab" |
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" |
jrizzoli | 5bba72a | 2015-08-28 22:03:53 +0200 | [diff] [blame] | 22 | android:orientation="vertical"> |
Michael Kolb | f205560 | 2011-04-09 17:20:03 -0700 | [diff] [blame] | 23 | <LinearLayout |
jrizzoli | 5bba72a | 2015-08-28 22:03:53 +0200 | [diff] [blame] | 24 | 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 Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 33 | android:layout_width="wrap_content" |
jrizzoli | 5bba72a | 2015-08-28 22:03:53 +0200 | [diff] [blame] | 34 | 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 Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 58 | </LinearLayout> |
jrizzoli | a62318b | 2015-09-08 21:44:50 +0200 | [diff] [blame] | 59 | <!--FrameLayout |
jrizzoli | 5bba72a | 2015-08-28 22:03:53 +0200 | [diff] [blame] | 60 | android:layout_width="match_parent" |
jrizzoli | a62318b | 2015-09-08 21:44:50 +0200 | [diff] [blame] | 61 | android:layout_height="48dp" |
| 62 | android:background="@color/trasparent" /--> |
Michael Kolb | 2814a36 | 2011-05-19 15:49:41 -0700 | [diff] [blame] | 63 | </LinearLayout> |