fix: 引入Settings的Module
This commit is contained in:
21
car-qc-lib/res/drawable/qc_row_action_divider.xml
Normal file
21
car-qc-lib/res/drawable/qc_row_action_divider.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<!--
|
||||
~ Copyright (C) 2022 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_row_horizontal_margin"/>
|
||||
</shape>
|
||||
27
car-qc-lib/res/drawable/qc_seekbar_wrapper_background.xml
Normal file
27
car-qc-lib/res/drawable/qc_seekbar_wrapper_background.xml
Normal file
@@ -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>
|
||||
28
car-qc-lib/res/drawable/qc_toggle_background.xml
Normal file
28
car-qc-lib/res/drawable/qc_toggle_background.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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_background_size"
|
||||
android:height="@dimen/qc_toggle_background_size"
|
||||
android:start="@dimen/qc_toggle_background_padding"
|
||||
android:top="@dimen/qc_toggle_background_padding"
|
||||
android:drawable="@drawable/qc_toggle_button_background">
|
||||
</item>
|
||||
<item android:width="@dimen/qc_toggle_rotary_highlight_size"
|
||||
android:height="@dimen/qc_toggle_rotary_highlight_size"
|
||||
android:drawable="@drawable/qc_toggle_rotary_background"/>
|
||||
</layer-list>
|
||||
34
car-qc-lib/res/drawable/qc_toggle_button_background.xml
Normal file
34
car-qc-lib/res/drawable/qc_toggle_button_background.xml
Normal file
@@ -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"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item app:state_toggle_unavailable="true">
|
||||
<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>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/qc_toggle_background_color" />
|
||||
<corners android:radius="@dimen/qc_toggle_background_radius" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
28
car-qc-lib/res/drawable/qc_toggle_rotary_background.xml
Normal file
28
car-qc-lib/res/drawable/qc_toggle_rotary_background.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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:width="@dimen/qc_toggle_rotary_shadow_size"
|
||||
android:height="@dimen/qc_toggle_rotary_shadow_size"
|
||||
android:start="@dimen/qc_toggle_rotary_shadow_padding"
|
||||
android:top="@dimen/qc_toggle_rotary_shadow_padding"
|
||||
android:drawable="@drawable/qc_toggle_rotary_shadow">
|
||||
</item>
|
||||
<item android:width="@dimen/qc_toggle_rotary_highlight_size"
|
||||
android:height="@dimen/qc_toggle_rotary_highlight_size"
|
||||
android:drawable="@drawable/qc_toggle_rotary_highlight"/>
|
||||
</layer-list>
|
||||
34
car-qc-lib/res/drawable/qc_toggle_rotary_highlight.xml
Normal file
34
car-qc-lib/res/drawable/qc_toggle_rotary_highlight.xml
Normal file
@@ -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_stroke_color"/>
|
||||
<corners android:radius="@dimen/qc_toggle_rotary_highlight_radius" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:state_focused="true">
|
||||
<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"/>
|
||||
<corners android:radius="@dimen/qc_toggle_rotary_highlight_radius" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
25
car-qc-lib/res/drawable/qc_toggle_rotary_shadow.xml
Normal file
25
car-qc-lib/res/drawable/qc_toggle_rotary_shadow.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2022 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="false">
|
||||
<shape android:shape="rectangle">
|
||||
<stroke android:width="@dimen/qc_toggle_rotary_shadow_width"
|
||||
android:color="@color/qc_toggle_rotary_shadow_color"/>
|
||||
<corners android:radius="@dimen/qc_toggle_rotary_shadow_radius" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
33
car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml
Normal file
33
car-qc-lib/res/drawable/qc_toggle_unavailable_background.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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_background_size"
|
||||
android:height="@dimen/qc_toggle_background_size"
|
||||
android:start="@dimen/qc_toggle_background_padding"
|
||||
android:top="@dimen/qc_toggle_background_padding">
|
||||
<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_rotary_highlight_size"
|
||||
android:height="@dimen/qc_toggle_rotary_highlight_size"
|
||||
android:drawable="@drawable/qc_toggle_rotary_background"/>
|
||||
</layer-list>
|
||||
Reference in New Issue
Block a user