1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright 2018, The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 <merge 18 xmlns:android="http://schemas.android.com/apk/res/android"> 19 20 <FrameLayout 21 android:id="@+id/nav_icon_container" 22 android:layout_width="wrap_content" 23 android:layout_height="wrap_content" 24 android:layout_alignParentLeft="true" 25 android:layout_centerInParent="true" 26 android:layout_marginLeft="34dp" 27 android:layout_toLeftOf="@+id/app_switch_indicator" 28 android:padding="@dimen/car_padding_1" 29 android:background="@drawable/app_item_background"> 30 <ImageView 31 android:id="@+id/nav_icon" 32 android:layout_width="@dimen/car_primary_icon_size" 33 android:layout_height="@dimen/car_primary_icon_size" 34 android:tint="@color/car_body1_light"/> 35 </FrameLayout> 36 37 <LinearLayout 38 android:id="@+id/tabs" 39 android:layout_width="wrap_content" 40 android:layout_height="match_parent" 41 android:orientation="horizontal" 42 android:gravity="center" 43 android:layout_alignParentLeft="true" 44 android:layout_centerInParent="true"/> 45 46 <LinearLayout 47 android:id="@+id/app_switch_container" 48 android:layout_width="@dimen/car_margin" 49 android:layout_height="wrap_content" 50 android:layout_alignParentRight="true" 51 android:layout_centerInParent="true" 52 android:padding="@dimen/car_padding_1" 53 android:orientation="horizontal" 54 android:background="@drawable/app_item_background" 55 android:gravity="center"> 56 57 <ImageView 58 android:id="@+id/app_icon" 59 android:layout_width="@dimen/car_primary_icon_size" 60 android:layout_height="@dimen/car_primary_icon_size"/> 61 62 <ImageView 63 android:id="@+id/app_switch_icon" 64 android:layout_width="@dimen/car_primary_icon_size" 65 android:layout_height="@dimen/car_primary_icon_size" 66 android:tint="@color/car_body1_light"/> 67 68 </LinearLayout> 69 70 <TextView 71 android:id="@+id/title" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:layout_centerInParent="true" 75 android:textAppearance="@style/TextAppearance.Car.Body1.Light"/> 76 77 </merge>