Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 1 | <?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 Xue | eaff6c3 | 2018-04-10 08:20:29 -0700 | [diff] [blame^] | 21 | android:layout_height="@dimen/car_app_bar_height" |
| 22 | android:layout_gravity="top"> |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 23 | |
| 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 Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 43 | 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 Xue | eaff6c3 | 2018-04-10 08:20:29 -0700 | [diff] [blame^] | 61 | android:background="@drawable/button_ripple_bg" |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 62 | 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 Xue | eaff6c3 | 2018-04-10 08:20:29 -0700 | [diff] [blame^] | 67 | android:background="@null" |
| 68 | style="@style/ListIcon.ActionBar"/> |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 69 | <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 Xue | eaff6c3 | 2018-04-10 08:20:29 -0700 | [diff] [blame^] | 74 | android:background="@null" |
| 75 | android:textColor="@color/car_accent" |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 76 | 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 Xue | eaff6c3 | 2018-04-10 08:20:29 -0700 | [diff] [blame^] | 86 | android:background="@drawable/button_ripple_bg" |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 87 | style="@style/Widget.Car.Settings.ActionBar.Button.Borderless.Colored" |
| 88 | android:orientation="horizontal"> |
| 89 | <ImageView |
| 90 | android:src="@drawable/ic_settings_gear" |
Lujiang Xue | eaff6c3 | 2018-04-10 08:20:29 -0700 | [diff] [blame^] | 91 | android:background="@null" |
| 92 | style="@style/ListIcon.ActionBar"/> |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 93 | <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 Xue | eaff6c3 | 2018-04-10 08:20:29 -0700 | [diff] [blame^] | 98 | android:textColor="@color/car_accent" |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 99 | android:textAppearance="@style/TextAppearance.Car.Label1" |
Lujiang Xue | eaff6c3 | 2018-04-10 08:20:29 -0700 | [diff] [blame^] | 100 | android:background="@null" |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 101 | android:layout_marginStart="@dimen/car_padding_2" |
| 102 | android:layout_marginEnd="@dimen/car_padding_2"/> |
| 103 | </LinearLayout> |
| 104 | </LinearLayout> |
Lujiang Xue | a12477f | 2018-04-10 08:20:29 -0700 | [diff] [blame] | 105 | </RelativeLayout> |