summaryrefslogtreecommitdiff
path: root/car-qc-lib/res
diff options
context:
space:
mode:
Diffstat (limited to 'car-qc-lib/res')
-rw-r--r--car-qc-lib/res/color/qc_toggle_background_color.xml27
-rw-r--r--car-qc-lib/res/color/qc_toggle_icon_fill_color.xml27
-rw-r--r--car-qc-lib/res/drawable/qc_row_action_divider.xml21
-rw-r--r--car-qc-lib/res/drawable/qc_seekbar_wrapper_background.xml27
-rw-r--r--car-qc-lib/res/drawable/qc_toggle_background.xml29
-rw-r--r--car-qc-lib/res/drawable/qc_toggle_rotary_background.xml34
-rw-r--r--car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml31
-rw-r--r--car-qc-lib/res/layout/qc_action_switch.xml30
-rw-r--r--car-qc-lib/res/layout/qc_action_toggle.xml25
-rw-r--r--car-qc-lib/res/layout/qc_row_view.xml142
-rw-r--r--car-qc-lib/res/layout/qc_tile_view.xml41
-rw-r--r--car-qc-lib/res/values/colors.xml22
-rw-r--r--car-qc-lib/res/values/dimens.xml35
-rw-r--r--car-qc-lib/res/values/styles.xml39
14 files changed, 530 insertions, 0 deletions
diff --git a/car-qc-lib/res/color/qc_toggle_background_color.xml b/car-qc-lib/res/color/qc_toggle_background_color.xml
new file mode 100644
index 0000000..15253ad
--- /dev/null
+++ b/car-qc-lib/res/color/qc_toggle_background_color.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_checked="false" android:state_enabled="false"
+ android:alpha="?android:attr/disabledAlpha"
+ android:color="@color/qc_toggle_off_background_color"/>
+ <item android:state_checked="false"
+ android:color="@color/qc_toggle_off_background_color"/>
+ <item android:state_enabled="false"
+ android:alpha="?android:attr/disabledAlpha"
+ android:color="?android:attr/colorAccent"/>
+ <item android:color="?android:attr/colorAccent"/>
+</selector>
diff --git a/car-qc-lib/res/color/qc_toggle_icon_fill_color.xml b/car-qc-lib/res/color/qc_toggle_icon_fill_color.xml
new file mode 100644
index 0000000..bdb5433
--- /dev/null
+++ b/car-qc-lib/res/color/qc_toggle_icon_fill_color.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_checked="false" android:state_enabled="false"
+ android:alpha="?android:attr/disabledAlpha"
+ android:color="@android:color/white"/>
+ <item android:state_checked="false"
+ android:color="@android:color/white"/>
+ <item android:state_enabled="false"
+ android:alpha="?android:attr/disabledAlpha"
+ android:color="@android:color/black"/>
+ <item android:color="@android:color/black"/>
+</selector>
diff --git a/car-qc-lib/res/drawable/qc_row_action_divider.xml b/car-qc-lib/res/drawable/qc_row_action_divider.xml
new file mode 100644
index 0000000..75ffd46
--- /dev/null
+++ b/car-qc-lib/res/drawable/qc_row_action_divider.xml
@@ -0,0 +1,21 @@
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+
+<shape xmlns:android="http://schemas.android.com/apk/res/android">
+ <size
+ android:height="0dp"
+ android:width="@dimen/qc_toggle_margin"/>
+</shape>
diff --git a/car-qc-lib/res/drawable/qc_seekbar_wrapper_background.xml b/car-qc-lib/res/drawable/qc_seekbar_wrapper_background.xml
new file mode 100644
index 0000000..58b9c65
--- /dev/null
+++ b/car-qc-lib/res/drawable/qc_seekbar_wrapper_background.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <!-- Highlight the wrapper when it's focused but not selected. The wrapper is selected in
+ direct manipulation mode. -->
+ <item android:state_focused="true" android:state_selected="false">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/car_ui_rotary_focus_fill_color"/>
+ <stroke android:width="@dimen/car_ui_rotary_focus_stroke_width"
+ android:color="@color/car_ui_rotary_focus_stroke_color"/>
+ </shape>
+ </item>
+</selector> \ No newline at end of file
diff --git a/car-qc-lib/res/drawable/qc_toggle_background.xml b/car-qc-lib/res/drawable/qc_toggle_background.xml
new file mode 100644
index 0000000..c139590
--- /dev/null
+++ b/car-qc-lib/res/drawable/qc_toggle_background.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@android:id/background"
+ android:width="@dimen/qc_toggle_size"
+ android:height="@dimen/qc_toggle_size">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/qc_toggle_background_color" />
+ <corners android:radius="@dimen/qc_toggle_background_radius" />
+ </shape>
+ </item>
+ <item android:width="@dimen/qc_toggle_size"
+ android:height="@dimen/qc_toggle_size"
+ android:drawable="@drawable/qc_toggle_rotary_background"/>
+</layer-list> \ No newline at end of file
diff --git a/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml b/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml
new file mode 100644
index 0000000..406c44c
--- /dev/null
+++ b/car-qc-lib/res/drawable/qc_toggle_rotary_background.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_focused="true" android:state_pressed="true">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/car_ui_rotary_focus_pressed_fill_secondary_color"/>
+ <stroke android:width="@dimen/car_ui_rotary_focus_pressed_stroke_width"
+ android:color="@color/car_ui_rotary_focus_pressed_stroke_secondary_color"/>
+ <corners android:radius="@dimen/qc_toggle_rotary_background_radius" />
+ </shape>
+ </item>
+ <item android:state_focused="true">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/car_ui_rotary_focus_fill_secondary_color"/>
+ <stroke android:width="@dimen/car_ui_rotary_focus_stroke_width"
+ android:color="@color/car_ui_rotary_focus_stroke_secondary_color"/>
+ <corners android:radius="@dimen/qc_toggle_rotary_background_radius" />
+ </shape>
+ </item>
+</selector> \ No newline at end of file
diff --git a/car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml b/car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml
new file mode 100644
index 0000000..98cbded
--- /dev/null
+++ b/car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@android:id/background"
+ android:width="@dimen/qc_toggle_size"
+ android:height="@dimen/qc_toggle_size">
+ <shape android:shape="rectangle">
+ <solid android:color="@color/qc_toggle_unavailable_background_color" />
+ <stroke android:color="@color/qc_toggle_unavailable_color"
+ android:width="@dimen/qc_toggle_unavailable_outline_width" />
+ <corners android:radius="@dimen/qc_toggle_background_radius" />
+ </shape>
+ </item>
+ <item android:width="@dimen/qc_toggle_size"
+ android:height="@dimen/qc_toggle_size"
+ android:drawable="@drawable/qc_toggle_rotary_background"/>
+</layer-list>
diff --git a/car-qc-lib/res/layout/qc_action_switch.xml b/car-qc-lib/res/layout/qc_action_switch.xml
new file mode 100644
index 0000000..b443d8f
--- /dev/null
+++ b/car-qc-lib/res/layout/qc_action_switch.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+
+<FrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/qc_switch_frame"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="?android:attr/selectableItemBackground">
+ <Switch
+ android:id="@android:id/switch_widget"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:clickable="false"
+ android:focusable="false" />
+</FrameLayout>
diff --git a/car-qc-lib/res/layout/qc_action_toggle.xml b/car-qc-lib/res/layout/qc_action_toggle.xml
new file mode 100644
index 0000000..301e0c4
--- /dev/null
+++ b/car-qc-lib/res/layout/qc_action_toggle.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+<com.android.car.ui.uxr.DrawableStateToggleButton
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/qc_toggle_button"
+ android:background="@android:color/transparent"
+ android:defaultFocusHighlightEnabled="false"
+ android:minHeight="0dp"
+ android:minWidth="0dp"
+ android:layout_width="@dimen/qc_toggle_size"
+ android:layout_height="@dimen/qc_toggle_size"/> \ No newline at end of file
diff --git a/car-qc-lib/res/layout/qc_row_view.xml b/car-qc-lib/res/layout/qc_row_view.xml
new file mode 100644
index 0000000..16309de
--- /dev/null
+++ b/car-qc-lib/res/layout/qc_row_view.xml
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+
+<com.android.car.ui.uxr.DrawableStateConstraintLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:clipToPadding="false"
+ android:minHeight="@dimen/qc_row_min_height"
+ android:paddingVertical="@dimen/qc_row_padding_vertical"
+ android:paddingEnd="@dimen/qc_row_padding_end"
+ android:paddingStart="@dimen/qc_row_padding_start">
+
+ <LinearLayout
+ android:id="@+id/qc_row_start_items"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="@dimen/qc_action_items_horizontal_margin"
+ android:orientation="horizontal"
+ android:divider="@drawable/qc_row_action_divider"
+ android:showDividers="middle"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@+id/qc_row_content"
+ app:layout_constraintHorizontal_chainStyle="spread_inside"/>
+
+ <com.android.car.ui.uxr.DrawableStateConstraintLayout
+ android:id="@+id/qc_row_content"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:background="?android:attr/selectableItemBackground"
+ app:layout_constraintStart_toEndOf="@+id/qc_row_start_items"
+ app:layout_constraintEnd_toStartOf="@+id/qc_row_end_items"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent">
+
+ <com.android.car.ui.uxr.DrawableStateImageView
+ android:id="@+id/qc_icon"
+ android:layout_width="@dimen/qc_row_icon_size"
+ android:layout_height="@dimen/qc_row_icon_size"
+ android:layout_marginEnd="@dimen/qc_row_icon_margin_end"
+ android:scaleType="fitCenter"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@+id/barrier1"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toTopOf="@+id/barrier2"/>
+
+ <androidx.constraintlayout.widget.Barrier
+ android:id="@+id/barrier1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:barrierDirection="end"
+ app:constraint_referenced_ids="qc_icon"
+ app:barrierAllowsGoneWidgets="false"/>
+
+ <com.android.car.ui.uxr.DrawableStateTextView
+ android:id="@+id/qc_title"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:singleLine="true"
+ android:textAppearance="@style/TextAppearance.QC.Title"
+ app:layout_constraintStart_toEndOf="@+id/barrier1"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toTopOf="@+id/qc_summary"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintVertical_chainStyle="packed"/>
+
+ <com.android.car.ui.uxr.DrawableStateTextView
+ android:id="@+id/qc_summary"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_centerVertical="true"
+ android:textAppearance="@style/TextAppearance.QC.Subtitle"
+ app:layout_constraintStart_toEndOf="@+id/barrier1"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/qc_title"/>
+
+ <androidx.constraintlayout.widget.Barrier
+ android:id="@+id/barrier2"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:barrierDirection="bottom"
+ app:constraint_referenced_ids="qc_icon,qc_title,qc_summary"
+ app:barrierAllowsGoneWidgets="false"/>
+
+ <androidx.preference.UnPressableLinearLayout
+ android:id="@+id/qc_seekbar_wrapper"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:paddingVertical="@dimen/qc_seekbar_padding_vertical"
+ android:focusable="true"
+ android:background="@drawable/qc_seekbar_wrapper_background"
+ android:clipChildren="false"
+ android:clipToPadding="false"
+ android:layout_centerVertical="true"
+ android:orientation="vertical"
+ android:visibility="gone"
+ app:layout_constraintStart_toEndOf="@+id/barrier1"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/barrier2"
+ app:layout_constraintBottom_toBottomOf="parent">
+ <SeekBar
+ android:id="@+id/seekbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ style="@style/Widget.QC.SeekBar"/>
+ </androidx.preference.UnPressableLinearLayout>
+
+ </com.android.car.ui.uxr.DrawableStateConstraintLayout>
+
+ <LinearLayout
+ android:id="@+id/qc_row_end_items"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="@dimen/qc_action_items_horizontal_margin"
+ android:orientation="horizontal"
+ android:divider="@drawable/qc_row_action_divider"
+ android:showDividers="middle"
+ app:layout_constraintStart_toEndOf="@+id/qc_row_content"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"/>
+
+</com.android.car.ui.uxr.DrawableStateConstraintLayout>
diff --git a/car-qc-lib/res/layout/qc_tile_view.xml b/car-qc-lib/res/layout/qc_tile_view.xml
new file mode 100644
index 0000000..7fb0884
--- /dev/null
+++ b/car-qc-lib/res/layout/qc_tile_view.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+<com.android.car.ui.uxr.DrawableStateLinearLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/qc_tile_wrapper"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:background="?android:attr/selectableItemBackground">
+ <com.android.car.ui.uxr.DrawableStateToggleButton
+ android:id="@+id/qc_tile_toggle_button"
+ android:background="@android:color/transparent"
+ android:layout_width="@dimen/qc_toggle_size"
+ android:layout_height="@dimen/qc_toggle_size"
+ android:layout_marginTop="@dimen/qc_toggle_margin"
+ android:layout_marginBottom="@dimen/qc_toggle_margin"
+ android:layout_marginStart="@dimen/qc_toggle_margin"
+ android:layout_marginEnd="@dimen/qc_toggle_margin"
+ android:clickable="false"
+ android:focusable="false"/>
+ <com.android.car.ui.uxr.DrawableStateTextView
+ android:id="@android:id/summary"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="@style/TextAppearance.QC.Subtitle"/>
+</com.android.car.ui.uxr.DrawableStateLinearLayout> \ No newline at end of file
diff --git a/car-qc-lib/res/values/colors.xml b/car-qc-lib/res/values/colors.xml
new file mode 100644
index 0000000..e3fbd6f
--- /dev/null
+++ b/car-qc-lib/res/values/colors.xml
@@ -0,0 +1,22 @@
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+
+<resources>
+ <color name="qc_start_icon_color">@android:color/white</color>
+ <color name="qc_toggle_off_background_color">#626262</color>
+ <color name="qc_toggle_unavailable_background_color">@android:color/transparent</color>
+ <color name="qc_toggle_unavailable_color">#75FFFFFF</color>
+</resources> \ No newline at end of file
diff --git a/car-qc-lib/res/values/dimens.xml b/car-qc-lib/res/values/dimens.xml
new file mode 100644
index 0000000..778895f
--- /dev/null
+++ b/car-qc-lib/res/values/dimens.xml
@@ -0,0 +1,35 @@
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+
+<resources>
+ <dimen name="qc_row_padding_start">32dp</dimen>
+ <dimen name="qc_row_padding_end">32dp</dimen>
+ <dimen name="qc_row_min_height">76dp</dimen>
+ <dimen name="qc_row_padding_vertical">16dp</dimen>
+ <dimen name="qc_row_icon_size">44dp</dimen>
+ <dimen name="qc_row_icon_margin_end">32dp</dimen>
+ <dimen name="qc_row_content_margin">16dp</dimen>
+
+ <dimen name="qc_action_items_horizontal_margin">32dp</dimen>
+ <dimen name="qc_toggle_size">72dp</dimen>
+ <dimen name="qc_toggle_margin">12dp</dimen>
+ <dimen name="qc_toggle_background_radius">16dp</dimen>
+ <dimen name="qc_toggle_rotary_background_radius">11dp</dimen>
+ <dimen name="qc_toggle_foreground_icon_inset">14dp</dimen>
+ <dimen name="qc_toggle_unavailable_outline_width">2dp</dimen>
+
+ <dimen name="qc_seekbar_padding_vertical">16dp</dimen>
+</resources> \ No newline at end of file
diff --git a/car-qc-lib/res/values/styles.xml b/car-qc-lib/res/values/styles.xml
new file mode 100644
index 0000000..587b522
--- /dev/null
+++ b/car-qc-lib/res/values/styles.xml
@@ -0,0 +1,39 @@
+<!--
+ ~ Copyright (C) 2021 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.
+ -->
+
+<resources>
+ <style name="TextAppearance.QC" parent="android:TextAppearance.DeviceDefault">
+ <item name="android:textColor">@color/car_ui_text_color_primary</item>
+ </style>
+
+ <style name="TextAppearance.QC.Title">
+ <item name="android:textSize">@dimen/car_ui_body1_size</item>
+ </style>
+
+ <style name="TextAppearance.QC.Subtitle">
+ <item name="android:textColor">@color/car_ui_text_color_secondary</item>
+ <item name="android:textSize">@dimen/car_ui_body3_size</item>
+ </style>
+
+ <style name="Widget.QC" parent="android:Widget.DeviceDefault"/>
+
+ <style name="Widget.QC.SeekBar">
+ <item name="android:background">@null</item>
+ <item name="android:clickable">false</item>
+ <item name="android:focusable">false</item>
+ <item name="android:splitTrack">false</item>
+ </style>
+</resources>