blob: fe2b233456c38f36b7e42b16c436ba2344e05447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2018, The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<merge
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/row_separator"
android:layout_width="0dp"
android:layout_height="0dp"
android:orientation="horizontal"
app:layout_constraintGuide_begin="@dimen/appbar_first_row_height"/>
<FrameLayout
android:id="@+id/nav_icon_container"
android:layout_width="@dimen/appbar_view_nav_button_width"
android:layout_height="wrap_content"
android:padding="@dimen/app_switch_widget_icon_padding"
android:background="@drawable/appbar_view_icon_background"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/row_separator"
app:layout_constraintStart_toStartOf="parent">
<ImageView
android:id="@+id/nav_icon"
android:layout_width="@dimen/appbar_view_icon_size"
android:layout_height="@dimen/appbar_view_icon_size"
android:layout_gravity="center"
android:scaleType="fitXY"
android:tint="@color/appbar_view_icon_tint"/>
</FrameLayout>
<com.android.car.apps.common.widget.CarTabLayout
android:id="@+id/tabs"
style="@style/AppBarTabStyle"/>
<EditText
android:id="@+id/search_bar"
android:layout_height="0dp"
android:layout_width="0dp"
android:layout_marginStart="@dimen/appbar_view_nav_button_width"
android:hint="@string/search_hint"
android:inputType="text"
android:singleLine="true"
android:imeOptions="actionDone"
android:visibility="gone"
android:cursorVisible="false"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/row_separator"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@+id/search"/>
<ImageView
android:id="@+id/search"
android:layout_width="@dimen/appbar_view_icon_touch_target_size"
android:layout_height="@dimen/appbar_view_icon_touch_target_size"
android:layout_marginEnd="@dimen/appbar_view_control_buttons_spacing"
android:padding="@dimen/appbar_view_icon_padding"
android:tint="@color/appbar_view_icon_tint"
android:src="@drawable/ic_search"
android:background="@drawable/appbar_view_icon_background"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/row_separator"
app:layout_constraintEnd_toStartOf="@+id/settings"
app:layout_goneMarginEnd="@dimen/appbar_view_control_buttons_margin_end"/>
<com.android.car.apps.common.UxrImageView
android:id="@+id/settings"
android:layout_width="@dimen/appbar_view_icon_touch_target_size"
android:layout_height="@dimen/appbar_view_icon_touch_target_size"
android:layout_marginEnd="@dimen/appbar_view_control_buttons_margin_end"
android:padding="@dimen/appbar_view_icon_padding"
android:tint="@color/appbar_view_settings_tint"
android:src="@drawable/ic_settings"
android:background="@drawable/appbar_view_icon_background"
app:carUxRestrictions="UX_RESTRICTIONS_NO_SETUP"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/row_separator"
app:layout_constraintEnd_toStartOf="@+id/app_switch_container"/>
<com.android.car.media.common.MediaAppSelectorWidget
android:id="@+id/app_switch_container"
android:layout_width="@dimen/app_switch_widget_width"
android:layout_height="@dimen/appbar_view_icon_touch_target_size"
android:orientation="horizontal"
android:gravity="center"
android:background="@drawable/appbar_view_icon_background"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/row_separator"
app:layout_constraintEnd_toEndOf="parent"/>
<TextView
android:id="@+id/title"
style="@style/AppBarTitleStyle"
android:layout_marginStart="@dimen/appbar_view_title_margin_start"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toTopOf="@id/row_separator"
app:layout_constraintStart_toEndOf="@id/nav_icon_container"
app:layout_constraintEnd_toStartOf="@id/search"/>
</merge>
|