blob: 7b3ba20d17c80774cb1b2104edc72186f4ddca06 [file] [log] [blame]
Lujiang Xuea12477f2018-04-10 08:20:29 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 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
18<RelativeLayout
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 android:layout_width="match_parent"
Lujiang Xueeaff6c32018-04-10 08:20:29 -070021 android:layout_height="@dimen/car_app_bar_height"
22 android:layout_gravity="top">
Lujiang Xuea12477f2018-04-10 08:20:29 -070023
24 <FrameLayout
25 android:id="@+id/action_bar_icon_container"
26 android:layout_width="@dimen/car_margin"
27 android:layout_height="match_parent"
28 android:layout_alignParentStart="true">
29
30 <ImageView
31 android:id="@+id/exit_button"
32 android:layout_gravity="center"
33 android:src="@drawable/ic_close"
34 style="@style/ListIcon.ActionBar"/>
35 </FrameLayout>
36
37 <TextView
38 android:id="@+id/title"
39 android:layout_width="wrap_content"
40 android:layout_height="match_parent"
41 android:layout_marginEnd="@dimen/car_keyline_1"
42 android:layout_toEndOf="@id/action_bar_icon_container"
Lujiang Xuea12477f2018-04-10 08:20:29 -070043 android:gravity="center_vertical"
44 android:textAppearance="@style/TextAppearance.Car.Title2"
45 android:textColor="@color/car_accent"/>
46
47 <LinearLayout
48 android:id="@+id/button_container"
49 android:layout_width="wrap_content"
50 android:layout_height="match_parent"
51 android:layout_alignParentEnd="true"
52 android:layout_marginEnd="@dimen/car_keyline_1"
53 android:orientation="horizontal">
54
55 <LinearLayout
56 android:id="@+id/user_switcher_btn"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_gravity="center_vertical"
60 android:layout_marginEnd="@dimen/car_padding_4"
Lujiang Xueeaff6c32018-04-10 08:20:29 -070061 android:background="@drawable/button_ripple_bg"
Lujiang Xuea12477f2018-04-10 08:20:29 -070062 style="@style/Widget.Car.Settings.ActionBar.Button.Borderless.Colored"
63 android:orientation="horizontal">
64 <ImageView
65 android:id="@+id/user_icon"
66 android:src="@drawable/ic_user"
Lujiang Xueeaff6c32018-04-10 08:20:29 -070067 android:background="@null"
68 style="@style/ListIcon.ActionBar"/>
Lujiang Xuea12477f2018-04-10 08:20:29 -070069 <TextView
70 android:id="@+id/user_switcher_text"
71 android:layout_width="wrap_content"
72 android:layout_height="wrap_content"
73 android:layout_gravity="center_vertical"
Lujiang Xueeaff6c32018-04-10 08:20:29 -070074 android:background="@null"
75 android:textColor="@color/car_accent"
Lujiang Xuea12477f2018-04-10 08:20:29 -070076 android:textAppearance="@style/TextAppearance.Car.Label1"
77 android:layout_marginStart="@dimen/car_padding_2"
78 android:layout_marginEnd="@dimen/car_padding_2"/>
79 </LinearLayout>
80 <LinearLayout
81 android:id="@+id/full_setting_btn"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:layout_gravity="center_vertical"
85 android:layout_marginEnd="@dimen/car_padding_4"
Lujiang Xueeaff6c32018-04-10 08:20:29 -070086 android:background="@drawable/button_ripple_bg"
Lujiang Xuea12477f2018-04-10 08:20:29 -070087 style="@style/Widget.Car.Settings.ActionBar.Button.Borderless.Colored"
88 android:orientation="horizontal">
89 <ImageView
90 android:src="@drawable/ic_settings_gear"
Lujiang Xueeaff6c32018-04-10 08:20:29 -070091 android:background="@null"
92 style="@style/ListIcon.ActionBar"/>
Lujiang Xuea12477f2018-04-10 08:20:29 -070093 <TextView
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:layout_gravity="center_vertical"
97 android:text="@string/more_settings_label"
Lujiang Xueeaff6c32018-04-10 08:20:29 -070098 android:textColor="@color/car_accent"
Lujiang Xuea12477f2018-04-10 08:20:29 -070099 android:textAppearance="@style/TextAppearance.Car.Label1"
Lujiang Xueeaff6c32018-04-10 08:20:29 -0700100 android:background="@null"
Lujiang Xuea12477f2018-04-10 08:20:29 -0700101 android:layout_marginStart="@dimen/car_padding_2"
102 android:layout_marginEnd="@dimen/car_padding_2"/>
103 </LinearLayout>
104 </LinearLayout>
Lujiang Xuea12477f2018-04-10 08:20:29 -0700105</RelativeLayout>