feat: SettingsLib验证通过-使用App module启用
This commit is contained in:
148
CarSettings/res/layout/action_buttons_preference.xml
Normal file
148
CarSettings/res/layout/action_buttons_preference.xml
Normal file
@@ -0,0 +1,148 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2020 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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:layout_marginTop="@dimen/action_buttons_margin_top"
|
||||
android:layout_marginBottom="@dimen/action_buttons_margin_bottom"
|
||||
android:orientation="vertical">
|
||||
|
||||
<View
|
||||
android:id="@+id/topDivider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/action_buttons_divider_height"
|
||||
style="@style/Preference.CarUi.Divider"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateLinearLayout
|
||||
android:id="@+id/button1"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall">
|
||||
<com.android.car.ui.uxr.DrawableStateImageView
|
||||
android:id="@+id/button1Icon"
|
||||
style="@style/PreferenceButtonIconAppearance"
|
||||
android:layout_width="@dimen/secondary_icon_size"
|
||||
android:layout_height="@dimen/secondary_icon_size"
|
||||
android:scaleType="fitCenter"
|
||||
android:layout_marginEnd="@dimen/action_buttons_icon_margin_end"
|
||||
android:selectable="false"/>
|
||||
<com.android.car.ui.uxr.DrawableStateTextView
|
||||
android:id="@+id/button1Text"
|
||||
style="@style/PreferenceButtonTextAppearance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:selectable="false"/>
|
||||
</com.android.car.ui.uxr.DrawableStateLinearLayout>
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateLinearLayout
|
||||
android:id="@+id/button2"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall">
|
||||
<com.android.car.ui.uxr.DrawableStateImageView
|
||||
android:id="@+id/button2Icon"
|
||||
style="@style/PreferenceButtonIconAppearance"
|
||||
android:layout_width="@dimen/secondary_icon_size"
|
||||
android:layout_height="@dimen/secondary_icon_size"
|
||||
android:scaleType="fitCenter"
|
||||
android:layout_marginEnd="@dimen/action_buttons_icon_margin_end"
|
||||
android:selectable="false"/>
|
||||
<com.android.car.ui.uxr.DrawableStateTextView
|
||||
android:id="@+id/button2Text"
|
||||
style="@style/PreferenceButtonTextAppearance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:selectable="false"/>
|
||||
</com.android.car.ui.uxr.DrawableStateLinearLayout>
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateLinearLayout
|
||||
android:id="@+id/button3"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall">
|
||||
<com.android.car.ui.uxr.DrawableStateImageView
|
||||
android:id="@+id/button3Icon"
|
||||
style="@style/PreferenceButtonIconAppearance"
|
||||
android:layout_width="@dimen/secondary_icon_size"
|
||||
android:layout_height="@dimen/secondary_icon_size"
|
||||
android:scaleType="fitCenter"
|
||||
android:layout_marginEnd="@dimen/action_buttons_icon_margin_end"
|
||||
android:selectable="false"/>
|
||||
<com.android.car.ui.uxr.DrawableStateTextView
|
||||
android:id="@+id/button3Text"
|
||||
style="@style/PreferenceButtonTextAppearance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:selectable="false"/>
|
||||
</com.android.car.ui.uxr.DrawableStateLinearLayout>
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateLinearLayout
|
||||
android:id="@+id/button4"
|
||||
style="?android:attr/buttonBarButtonStyle"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall">
|
||||
<com.android.car.ui.uxr.DrawableStateImageView
|
||||
android:id="@+id/button4Icon"
|
||||
style="@style/PreferenceButtonIconAppearance"
|
||||
android:layout_width="@dimen/secondary_icon_size"
|
||||
android:layout_height="@dimen/secondary_icon_size"
|
||||
android:scaleType="fitCenter"
|
||||
android:layout_marginEnd="@dimen/action_buttons_icon_margin_end"
|
||||
android:selectable="false"/>
|
||||
<com.android.car.ui.uxr.DrawableStateTextView
|
||||
android:id="@+id/button4Text"
|
||||
style="@style/PreferenceButtonTextAppearance"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:selectable="false"/>
|
||||
</com.android.car.ui.uxr.DrawableStateLinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/bottomDivider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/action_buttons_divider_height"
|
||||
style="@style/Preference.CarUi.Divider"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
94
CarSettings/res/layout/bluetooth_pin_confirm.xml
Normal file
94
CarSettings/res/layout/bluetooth_pin_confirm.xml
Normal file
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="@dimen/bluetooth_pin_dialog_margin_end"
|
||||
android:layout_marginStart="@dimen/bluetooth_pin_dialog_margin_start"
|
||||
android:orientation="vertical">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/pairing_caption"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:text="@string/bluetooth_pairing_key_msg"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:visibility="gone"/>
|
||||
<TextView
|
||||
android:id="@+id/pairing_subhead"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/bluetooth_pin_dialog_subtext_margin_top"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:visibility="gone"/>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/pairing_code_message"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/bluetooth_pin_dialog_section_height"
|
||||
android:gravity="center_vertical"
|
||||
android:text="@string/bluetooth_enter_passkey_msg"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/phonebook_sharing_message_confirm_pin_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
|
||||
<CheckBox
|
||||
android:id="@+id/phonebook_sharing_message_confirm_pin"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:button="@drawable/ic_check_box"/>
|
||||
<TextView
|
||||
android:id="@+id/phonebook_sharing_message_confirm_pin_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/bluetooth_pin_dialog_text_margin_end"
|
||||
android:layout_marginStart="@dimen/bluetooth_pin_dialog_text_margin_start"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
110
CarSettings/res/layout/bluetooth_pin_entry.xml
Normal file
110
CarSettings/res/layout/bluetooth_pin_entry.xml
Normal file
@@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<ScrollView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginEnd="@dimen/bluetooth_pin_dialog_margin_end"
|
||||
android:layout_marginStart="@dimen/bluetooth_pin_dialog_margin_start"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message_below_pin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/bluetooth_pin_dialog_section_height"
|
||||
android:gravity="center_vertical"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
<EditText
|
||||
android:id="@+id/text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:inputType="textPassword"
|
||||
android:maxLines="1"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
<TextView
|
||||
android:id="@+id/pin_values_hint"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/bluetooth_pin_dialog_subtext_margin_top"
|
||||
android:singleLine="true"
|
||||
android:text="@string/bluetooth_pin_values_hint"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
|
||||
<CheckBox
|
||||
android:id="@+id/alphanumeric_pin"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:button="@drawable/ic_check_box"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/bluetooth_pin_dialog_text_margin_end"
|
||||
android:layout_marginStart="@dimen/bluetooth_pin_dialog_text_margin_start"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:text="@string/bluetooth_enable_alphanumeric_pin"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
</RelativeLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bluetooth_pin_dialog_section_height">
|
||||
<CheckBox
|
||||
android:id="@+id/phonebook_sharing_message_entry_pin"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:button="@drawable/ic_check_box"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginEnd="@dimen/bluetooth_pin_dialog_text_margin_end"
|
||||
android:layout_marginStart="@dimen/bluetooth_pin_dialog_text_margin_start"
|
||||
android:gravity="center_vertical"
|
||||
android:singleLine="true"
|
||||
android:text="@string/bluetooth_pairing_shares_phonebook"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
79
CarSettings/res/layout/car_setting_activity.xml
Normal file
79
CarSettings/res/layout/car_setting_activity.xml
Normal file
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/car_settings_activity_wrapper"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/top_level_menu_container"
|
||||
android:layout_width="@dimen/top_level_menu_width"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/top_level_divider">
|
||||
|
||||
<fragment
|
||||
class="com.android.car.settings.common.TopLevelMenuFragment"
|
||||
android:id="@+id/top_level_menu"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
</FrameLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/top_level_divider"
|
||||
android:layout_width="@dimen/top_level_divider_width"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintStart_toEndOf="@id/top_level_menu_container"
|
||||
app:layout_constraintEnd_toStartOf="@id/top_level_divider"
|
||||
style="@style/CarSettingsActivityDividerStyle"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fragment_container_wrapper"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
app:layout_constraintStart_toEndOf="@id/top_level_divider"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
style="@style/CarSettingsFragmentContainerStyle">
|
||||
|
||||
<com.android.car.settings.common.rotary.SettingsFocusParkingView
|
||||
android:id="@+id/settings_focus_parking_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fragment_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<!-- set the text clickable to true so that it blocks touch event -->
|
||||
<TextView
|
||||
android:id="@+id/restricted_message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?android:attr/colorPrimary"
|
||||
android:clickable="true"
|
||||
android:focusable="false"
|
||||
android:gravity="center"
|
||||
android:text="@string/restricted_while_driving"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:visibility="gone"/>
|
||||
|
||||
</FrameLayout>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
86
CarSettings/res/layout/choose_lock_password.xml
Normal file
86
CarSettings/res/layout/choose_lock_password.xml
Normal file
@@ -0,0 +1,86 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<com.android.car.ui.FocusArea
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/settings_content_focus_area"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginHorizontal="@dimen/car_ui_margin"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="@integer/content_weight">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/password_entry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:focusableInTouchMode="true"
|
||||
android:hint="@string/security_lock_password"
|
||||
android:imeOptions="actionDone|flagNoExtractUi|flagForceAscii"
|
||||
android:inputType="textPassword"
|
||||
android:maxLines="1"
|
||||
android:paddingHorizontal="@dimen/pin_password_entry_padding_horizontal"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="@integer/illustration_weight"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
android:src="@drawable/ic_lock"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/choose_title_text_margin_bottom"
|
||||
android:gravity="center"
|
||||
android:text="@string/lockscreen_choose_your_password"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hint_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/lock_hint_padding"
|
||||
android:paddingEnd="@dimen/lock_hint_padding"
|
||||
android:minHeight="@dimen/lock_hint_min_height"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/choose_lock_password_hints"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.Body3"
|
||||
android:textColor="@color/secondary_text_color"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</com.android.car.ui.FocusArea>
|
||||
69
CarSettings/res/layout/choose_lock_pattern.xml
Normal file
69
CarSettings/res/layout/choose_lock_pattern.xml
Normal file
@@ -0,0 +1,69 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginHorizontal="@dimen/car_ui_margin"
|
||||
android:paddingBottom="@dimen/action_bar_height"
|
||||
android:paddingTop="@dimen/action_bar_height"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- Start side: lock pattern -->
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="@integer/content_weight">
|
||||
|
||||
<com.android.car.settings.security.CarLockPatternView
|
||||
android:id="@+id/lockPattern"
|
||||
style="@style/LockPattern"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"/>
|
||||
</FrameLayout>
|
||||
|
||||
<!-- End side: instructions and messages -->
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="@integer/illustration_weight"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
android:src="@drawable/ic_lock"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
96
CarSettings/res/layout/choose_lock_pin.xml
Normal file
96
CarSettings/res/layout/choose_lock_pin.xml
Normal file
@@ -0,0 +1,96 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<com.android.car.ui.FocusArea
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/settings_content_focus_area"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginHorizontal="@dimen/car_ui_margin"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- Start side: lock pattern -->
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="@integer/content_weight">
|
||||
|
||||
<com.android.car.settings.security.PinPadView
|
||||
android:id="@+id/pin_pad"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:columnCount="3"
|
||||
android:layoutDirection="ltr"/>
|
||||
</FrameLayout>
|
||||
|
||||
<!-- End side: pin entry field and messages -->
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="@integer/illustration_weight"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
android:src="@drawable/ic_lock"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/choose_pin_title_text_margin_bottom"
|
||||
android:gravity="center"
|
||||
android:text="@string/lockscreen_choose_your_pin"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/password_entry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:cursorVisible="false"
|
||||
android:focusable="false"
|
||||
android:gravity="center"
|
||||
android:inputType="textPassword"
|
||||
android:maxLines="1"
|
||||
android:paddingHorizontal="@dimen/pin_password_entry_padding_horizontal"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<!-- hint text -->
|
||||
<TextView
|
||||
android:id="@+id/hint_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/lock_hint_padding"
|
||||
android:paddingEnd="@dimen/lock_hint_padding"
|
||||
android:minHeight="@dimen/lock_hint_min_height"
|
||||
android:gravity="center_horizontal"
|
||||
android:text="@string/choose_lock_pin_hints"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.Body3"
|
||||
android:textColor="@color/secondary_text_color"/>
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</com.android.car.ui.FocusArea>
|
||||
59
CarSettings/res/layout/confirm_lock_password.xml
Normal file
59
CarSettings/res/layout/confirm_lock_password.xml
Normal file
@@ -0,0 +1,59 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<com.android.car.ui.FocusArea
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/settings_content_focus_area"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginHorizontal="@dimen/car_ui_margin"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/password_entry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@*android:dimen/action_bar_margin"
|
||||
android:gravity="center"
|
||||
android:inputType="textPassword"
|
||||
android:maxLines="1"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge">
|
||||
<requestFocus/>
|
||||
</EditText>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="@string/lock_settings_enter_password"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:freezesText="true"
|
||||
android:gravity="center"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
</LinearLayout>
|
||||
</com.android.car.ui.FocusArea>
|
||||
51
CarSettings/res/layout/confirm_lock_pattern.xml
Normal file
51
CarSettings/res/layout/confirm_lock_pattern.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:gravity="center"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginHorizontal="@dimen/car_ui_margin"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/confirm_lock_message_vertical_spacing"
|
||||
android:text="@string/lock_settings_enter_pattern"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/confirm_lock_message_vertical_spacing"
|
||||
android:gravity="center"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
|
||||
<com.android.car.settings.security.CarLockPatternView
|
||||
android:id="@+id/lockPattern"
|
||||
style="@style/LockPattern"
|
||||
android:layout_width="@dimen/confirm_pattern_dimension"
|
||||
android:layout_height="@dimen/confirm_pattern_dimension"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
83
CarSettings/res/layout/confirm_lock_pin.xml
Normal file
83
CarSettings/res/layout/confirm_lock_pin.xml
Normal file
@@ -0,0 +1,83 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<com.android.car.ui.FocusArea
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/settings_content_focus_area"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginHorizontal="@dimen/car_ui_margin"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<!-- Start side: lock PIN -->
|
||||
<FrameLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="@integer/content_weight"
|
||||
android:gravity="center">
|
||||
|
||||
<com.android.car.settings.security.PinPadView
|
||||
android:id="@+id/pin_pad"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:columnCount="3"
|
||||
android:layoutDirection="ltr"/>
|
||||
</FrameLayout>
|
||||
|
||||
<!-- End side: pin entry field and messages -->
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="@integer/illustration_weight"
|
||||
android:orientation="vertical">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/password_entry"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="@dimen/pin_password_entry_padding_horizontal"
|
||||
android:cursorVisible="false"
|
||||
android:focusable="false"
|
||||
android:gravity="center"
|
||||
android:inputType="textPassword"
|
||||
android:maxLines="1"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/confirm_lock_message_vertical_spacing"
|
||||
android:gravity="center"
|
||||
android:text="@string/lock_settings_enter_pin"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/message"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</com.android.car.ui.FocusArea>
|
||||
32
CarSettings/res/layout/data_usage_edit_text_preference.xml
Normal file
32
CarSettings/res/layout/data_usage_edit_text_preference.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<EditText
|
||||
android:id="@+id/data_usage_edit_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:ems="@integer/data_usage_bytes_threshold_ems"
|
||||
android:inputType="numberDecimal"
|
||||
android:maxLines="1"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
</FrameLayout>
|
||||
79
CarSettings/res/layout/data_usage_summary_preference.xml
Normal file
79
CarSettings/res/layout/data_usage_summary_preference.xml
Normal file
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||
android:orientation="vertical"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart">
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/usage_indicator_preference_title_margin_bottom"
|
||||
android:layout_marginTop="@dimen/usage_indicator_preference_title_margin_top"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@android:id/progress"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="@dimen/usage_indicator_preference_progressbar_height"
|
||||
android:progressDrawable="@drawable/color_progress_bar"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/progress_bar_labels"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/usage_indicator_preference_label_margin_top"
|
||||
android:orientation="horizontal">
|
||||
<TextView android:id="@android:id/text1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<TextView android:id="@android:id/text2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/carrier_info_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:layout_marginTop="@dimen/usage_indicator_preference_label_margin_bottom"/>
|
||||
<Button
|
||||
android:id="@+id/manage_subscription_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/data_usage_summary_preference_button_height"
|
||||
android:layout_marginTop="@dimen/data_usage_summary_preference_button_margin_top"
|
||||
android:minWidth="@dimen/data_usage_summary_preference_button_min_width"
|
||||
android:text="@string/launch_manage_plan_text"/>
|
||||
</LinearLayout>
|
||||
34
CarSettings/res/layout/date_picker.xml
Normal file
34
CarSettings/res/layout/date_picker.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.FocusArea
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/settings_content_focus_area"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center">
|
||||
|
||||
<DatePicker
|
||||
android:id="@+id/date_picker"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:calendarViewShown="false"
|
||||
android:datePickerMode="spinner"
|
||||
android:focusable="true"
|
||||
android:scaleX="1.6"
|
||||
android:scaleY="1.6" />
|
||||
</com.android.car.ui.FocusArea>
|
||||
23
CarSettings/res/layout/delete_preference_widget.xml
Normal file
23
CarSettings/res/layout/delete_preference_widget.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<ImageView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_delete"/>
|
||||
31
CarSettings/res/layout/divider_preference.xml
Normal file
31
CarSettings/res/layout/divider_preference.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright (C) 2020 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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/transparent"
|
||||
android:gravity="center_vertical">
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/divider_preference_height"
|
||||
android:layout_marginBottom="@dimen/divider_preference_margin_top"
|
||||
android:layout_marginTop="@dimen/divider_preference_margin_bottom"
|
||||
style="@style/Preference.CarUi.Divider"/>
|
||||
</LinearLayout>
|
||||
23
CarSettings/res/layout/dropdown_preference_widget.xml
Normal file
23
CarSettings/res/layout/dropdown_preference_widget.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<ImageView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_arrow_drop_down"/>
|
||||
42
CarSettings/res/layout/edit_profile_name_fragment.xml
Normal file
42
CarSettings/res/layout/edit_profile_name_fragment.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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.
|
||||
-->
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.android.car.ui.FocusArea
|
||||
android:id="@+id/settings_content_focus_area"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentTop="true"
|
||||
android:paddingEnd="@dimen/edit_username_padding_end"
|
||||
android:paddingStart="@dimen/edit_username_padding_start"
|
||||
android:paddingTop="@dimen/edit_username_text_padding_top">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/profile_name_text_edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusableInTouchMode="true"
|
||||
android:hint="@string/user_name_label"
|
||||
android:imeOptions="actionDone|flagNoExtractUi"
|
||||
android:inputType="text"
|
||||
android:maxLines="1"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
</com.android.car.ui.FocusArea>
|
||||
</FrameLayout>
|
||||
53
CarSettings/res/layout/entity_header_preference.xml
Normal file
53
CarSettings/res/layout/entity_header_preference.xml
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2020 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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/entity_header"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:layout_marginBottom="@dimen/entity_header_margin_bottom"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/entity_header_icon"
|
||||
android:layout_width="@dimen/entity_header_icon_size"
|
||||
android:layout_height="@dimen/entity_header_icon_size"
|
||||
android:scaleType="fitCenter"
|
||||
android:antialias="true"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/entity_header_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:ellipsize="marquee"
|
||||
android:layout_marginTop="@dimen/entity_header_inner_margin"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceTitle"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/entity_header_summary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/entity_header_inner_margin"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"/>
|
||||
|
||||
</LinearLayout>
|
||||
49
CarSettings/res/layout/fallback_home_finishing_boot.xml
Normal file
49
CarSettings/res/layout/fallback_home_finishing_boot.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?android:attr/colorBackground"
|
||||
android:forceHasOverlappingRendering="false">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginStart="16dp"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@*android:string/android_start_title"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
android:textSize="20sp"/>
|
||||
|
||||
<ProgressBar
|
||||
style="@android:style/Widget.DeviceDefault.ProgressBar.Horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="12.75dp"
|
||||
android:colorControlActivated="?android:attr/textColorPrimary"
|
||||
android:indeterminate="true"/>
|
||||
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
21
CarSettings/res/layout/logical_preference_group.xml
Normal file
21
CarSettings/res/layout/logical_preference_group.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
141
CarSettings/res/layout/multi_action_preference.xml
Normal file
141
CarSettings/res/layout/multi_action_preference.xml
Normal file
@@ -0,0 +1,141 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
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:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||
android:tag="carUiPreference">
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateConstraintLayout
|
||||
android:id="@+id/multi_action_preference_first_action_container"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="0dp"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/multi_action_preference_second_action_container"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent">
|
||||
<com.android.car.ui.uxr.DrawableStateImageView
|
||||
style="@style/Preference.CarUi.Icon"
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/car_ui_preference_icon_size"
|
||||
android:layout_height="@dimen/car_ui_preference_icon_size"
|
||||
android:scaleType="fitCenter"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateTextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/car_ui_preference_icon_margin_end"
|
||||
app:layout_goneMarginStart="0dp"
|
||||
android:textAlignment="viewStart"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceTitle"
|
||||
app:layout_constraintStart_toEndOf="@android:id/icon"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@android:id/summary"
|
||||
app:layout_constraintVertical_chainStyle="packed"/>
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateTextView
|
||||
android:id="@android:id/summary"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/car_ui_preference_icon_margin_end"
|
||||
app:layout_goneMarginStart="0dp"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"
|
||||
android:maxLines="2"
|
||||
app:layout_constraintStart_toEndOf="@android:id/icon"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@android:id/title"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
</com.android.car.ui.uxr.DrawableStateConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:id="@+id/multi_action_preference_second_action_container"
|
||||
android:layout_height="0dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:paddingEnd="@dimen/multi_action_preference_item_container_padding"
|
||||
android:paddingStart="@dimen/multi_action_preference_item_container_padding"
|
||||
app:layout_constraintStart_toEndOf="@id/multi_action_preference_first_action_container"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent">
|
||||
|
||||
<View
|
||||
android:id="@+id/multi_action_preference_divider"
|
||||
android:layout_width="@dimen/car_ui_divider_width"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginBottom="@dimen/car_ui_preference_content_margin_bottom"
|
||||
android:layout_marginTop="@dimen/car_ui_preference_content_margin_top"
|
||||
android:layout_marginEnd="@dimen/multi_action_preference_item_divider_margin_end"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@id/multi_action_preference_item_container1"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
style="@style/Preference.CarUi.Divider"/>
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateFrameLayout
|
||||
android:id="@+id/multi_action_preference_item_container1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="false"
|
||||
app:layout_constraintStart_toEndOf="@id/multi_action_preference_divider"
|
||||
app:layout_constraintEnd_toStartOf="@id/multi_action_preference_item_container2"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateFrameLayout
|
||||
android:id="@+id/multi_action_preference_item_container2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="false"
|
||||
app:layout_constraintStart_toEndOf="@id/multi_action_preference_item_container1"
|
||||
app:layout_constraintEnd_toStartOf="@id/multi_action_preference_item_container3"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateFrameLayout
|
||||
android:id="@+id/multi_action_preference_item_container3"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="false"
|
||||
app:layout_constraintStart_toEndOf="@id/multi_action_preference_item_container2"
|
||||
app:layout_constraintEnd_toStartOf="@android:id/widget_frame"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
|
||||
<!-- The widget frame is required for androidx preferences, but we won't use it. -->
|
||||
<FrameLayout
|
||||
android:id="@android:id/widget_frame"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -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.
|
||||
-->
|
||||
<com.android.car.ui.uxr.DrawableStateToggleButton
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/multi_action_preference_toggle_button"
|
||||
android:background="@android:color/transparent"
|
||||
android:defaultFocusHighlightEnabled="false"
|
||||
android:layout_width="@dimen/multi_action_preference_toggle_button_size"
|
||||
android:layout_height="@dimen/multi_action_preference_toggle_button_size"
|
||||
android:layout_marginTop="@dimen/multi_action_preference_toggle_button_margin"
|
||||
android:layout_marginBottom="@dimen/multi_action_preference_toggle_button_margin"
|
||||
android:layout_marginStart="@dimen/multi_action_preference_toggle_button_margin"
|
||||
android:layout_marginEnd="@dimen/multi_action_preference_toggle_button_margin"/>
|
||||
122
CarSettings/res/layout/pin_pad_view.xml
Normal file
122
CarSettings/res/layout/pin_pad_view.xml
Normal file
@@ -0,0 +1,122 @@
|
||||
<?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">
|
||||
<!-- Row 1 -->
|
||||
<Button
|
||||
android:id="@+id/key1"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="1"
|
||||
android:text="@string/one"/>
|
||||
<Button
|
||||
android:id="@+id/key2"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="2"
|
||||
android:text="@string/two"/>
|
||||
<Button
|
||||
android:id="@+id/key3"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="3"
|
||||
android:text="@string/three"/>
|
||||
|
||||
<!-- Row 2 -->
|
||||
<Button
|
||||
android:id="@+id/key4"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="4"
|
||||
android:text="@string/four"/>
|
||||
<Button
|
||||
android:id="@+id/key5"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="5"
|
||||
android:text="@string/five"/>
|
||||
<Button
|
||||
android:id="@+id/key6"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="6"
|
||||
android:text="@string/six"/>
|
||||
|
||||
<!-- Row 3 -->
|
||||
<Button
|
||||
android:id="@+id/key7"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="7"
|
||||
android:text="@string/seven"/>
|
||||
<Button
|
||||
android:id="@+id/key8"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="8"
|
||||
android:text="@string/eight"/>
|
||||
<Button
|
||||
android:id="@+id/key9"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="9"
|
||||
android:text="@string/nine"/>
|
||||
|
||||
<!-- Row 4 -->
|
||||
<ImageButton
|
||||
android:id="@+id/key_backspace"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:contentDescription="@string/backspace_key"
|
||||
android:src="@drawable/ic_backspace"/>
|
||||
<Button
|
||||
android:id="@+id/key0"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:tag="0"
|
||||
android:text="@string/zero"/>
|
||||
<ImageButton
|
||||
android:id="@+id/key_enter"
|
||||
style="@style/PinPadKey"
|
||||
android:layout_width="@dimen/pin_pad_key_width"
|
||||
android:layout_height="@dimen/pin_pad_key_height"
|
||||
android:layout_margin="@dimen/pin_pad_key_margin"
|
||||
android:contentDescription="@string/enter_key"
|
||||
android:src="@drawable/ic_check"/>
|
||||
</merge>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="@dimen/alert_dialog_margin_bottom"
|
||||
android:layout_marginTop="@dimen/alert_dialog_margin_top"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/message"
|
||||
style="?android:attr/textAppearanceSmall"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/alert_dialog_title_margin_bottom"
|
||||
android:layout_marginEnd="@dimen/alert_dialog_title_margin_end"
|
||||
android:layout_marginStart="@dimen/alert_dialog_title_margin_start"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<EditText
|
||||
android:id="@android:id/edit"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAlignment="viewStart"
|
||||
android:layout_marginEnd="@dimen/alert_dialog_edit_text_margin_end"
|
||||
android:layout_marginStart="@dimen/alert_dialog_edit_text_margin_start"/>
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/checkbox"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/alert_dialog_password_checkbox_margin_end"
|
||||
android:layout_marginStart="@dimen/alert_dialog_password_checkbox_margin_start"
|
||||
android:layout_marginTop="@dimen/alert_dialog_password_checkbox_margin_top"
|
||||
android:text="@string/show_password"/>
|
||||
|
||||
</LinearLayout>
|
||||
22
CarSettings/res/layout/preference_settings_icon.xml
Normal file
22
CarSettings/res/layout/preference_settings_icon.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 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.
|
||||
-->
|
||||
<ImageView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:src="@drawable/ic_settings_gear"/>
|
||||
91
CarSettings/res/layout/preference_wifi_entry.xml
Normal file
91
CarSettings/res/layout/preference_wifi_entry.xml
Normal file
@@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2020 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.
|
||||
-->
|
||||
|
||||
<!-- Based off preference_material_settings.xml except that the ripple effect is active only on
|
||||
the left side. -->
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||
android:gravity="center_vertical"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:clipToPadding="false"
|
||||
android:paddingStart="@dimen/ap_preference_item_padding_start"
|
||||
android:paddingEnd="@dimen/ap_preference_item_padding_end">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:gravity="start|center_vertical"
|
||||
android:clipToPadding="false">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/icon_frame"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginEnd="@dimen/ap_preference_item_icon_margin_end">
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
/>
|
||||
</FrameLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp">
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:ellipsize="marquee" />
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/summary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@android:id/title"
|
||||
android:layout_alignStart="@android:id/title"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:maxLines="10" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<include layout="@layout/preference_two_target_divider" />
|
||||
|
||||
<!-- Preference should place its actual preference widget here. -->
|
||||
<LinearLayout
|
||||
android:id="@android:id/widget_frame"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:minWidth="64dp"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical" />
|
||||
|
||||
</LinearLayout>
|
||||
41
CarSettings/res/layout/profile_switcher.xml
Normal file
41
CarSettings/res/layout/profile_switcher.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.android.car.settings.profiles.ProfileGridRecyclerView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/profile_grid"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_above="@+id/managed_device"
|
||||
android:background="?attr/profileSwitcherBackground"/>
|
||||
|
||||
<com.android.car.admin.ui.ManagedDeviceTextView
|
||||
android:id="@+id/managed_device"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_marginBottom="@dimen/profile_switcher_margin_bottom"
|
||||
android:gravity="center"/>
|
||||
|
||||
</RelativeLayout>
|
||||
51
CarSettings/res/layout/profile_switcher_pod.xml
Normal file
51
CarSettings/res/layout/profile_switcher_pod.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:admin_ui="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:alpha="0"
|
||||
android:clipChildren="false"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/current_profile_frame"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<com.android.car.admin.ui.UserAvatarView
|
||||
android:id="@+id/profile_avatar"
|
||||
android:layout_width="@dimen/profile_switcher_image_avatar_size"
|
||||
android:layout_height="@dimen/profile_switcher_image_avatar_size"
|
||||
android:layout_gravity="center"
|
||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||
admin_ui:badgeDiameter="@dimen/profile_switcher_managed_badge_size"
|
||||
admin_ui:badgeMargin="@dimen/profile_switcher_managed_badge_margin" />
|
||||
</FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/profile_name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/profile_switcher_vertical_spacing_between_name_and_avatar"
|
||||
android:gravity="center"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?attr/profileSwitcherNameTextAppearance"/>
|
||||
|
||||
</LinearLayout>
|
||||
94
CarSettings/res/layout/progress_bar_preference.xml
Normal file
94
CarSettings/res/layout/progress_bar_preference.xml
Normal file
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2019 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.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||
android:orientation="horizontal"
|
||||
android:paddingBottom="@dimen/progress_bar_preference_padding_bottom"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:paddingTop="@dimen/progress_bar_preference_padding_top">
|
||||
<androidx.preference.internal.PreferenceImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
android:layout_marginEnd="?android:attr/listPreferredItemPaddingEnd"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAlignment="viewStart"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/summary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:maxLines="1"
|
||||
android:textAlignment="viewEnd"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@android:id/progress"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/progress_bar_preference_progressbar_margin_top"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/progress_bar_labels"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/progress_bar_preference_label_margin_top"
|
||||
android:orientation="horizontal">
|
||||
<TextView android:id="@android:id/text1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<TextView android:id="@android:id/text2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
28
CarSettings/res/layout/regulatory_info.xml
Normal file
28
CarSettings/res/layout/regulatory_info.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<ImageView
|
||||
android:id="@+id/regulatory_info"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:adjustViewBounds="true"
|
||||
android:contentDescription="@string/regulatory_labels"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/regulatory_info"/>
|
||||
</ScrollView>
|
||||
28
CarSettings/res/layout/settings_preference_fragment.xml
Normal file
28
CarSettings/res/layout/settings_preference_fragment.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.
|
||||
-->
|
||||
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?android:attr/colorBackground">
|
||||
<FrameLayout
|
||||
android:id="@android:id/list_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
</FrameLayout>
|
||||
</FrameLayout>
|
||||
32
CarSettings/res/layout/settings_recyclerview_default.xml
Normal file
32
CarSettings/res/layout/settings_recyclerview_default.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<com.android.car.ui.FocusArea
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/settings_car_ui_focus_area"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<com.android.car.ui.recyclerview.CarUiRecyclerView
|
||||
android:id="@+id/settings_recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:tag="carUiPreferenceRecyclerView"
|
||||
app:carUiSize="large"
|
||||
app:enableDivider="true" />
|
||||
</com.android.car.ui.FocusArea>
|
||||
</merge>
|
||||
85
CarSettings/res/layout/suggestion_preference.xml
Normal file
85
CarSettings/res/layout/suggestion_preference.xml
Normal file
@@ -0,0 +1,85 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<FrameLayout
|
||||
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_marginBottom="@dimen/suggestions_top_bottom_margin"
|
||||
android:layout_marginTop="@dimen/suggestions_top_bottom_margin"
|
||||
android:background="@android:color/transparent">
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:foreground="?android:attr/selectableItemBackground"
|
||||
app:cardCornerRadius="@dimen/suggestions_corner_radius">
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/suggestionsPrimaryColor"
|
||||
android:paddingBottom="@dimen/suggestions_text_padding_bottom"
|
||||
android:paddingEnd="@dimen/suggestions_padding_end"
|
||||
android:paddingStart="@dimen/suggestions_padding_start"
|
||||
android:paddingTop="@dimen/suggestions_text_padding_top">
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
<TextView
|
||||
android:id="@android:id/summary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/suggestions_subtext_margin_top"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@android:id/title"/>
|
||||
<ImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/icon_size"
|
||||
android:layout_height="@dimen/icon_size"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/suggestions_action_bar_height"
|
||||
android:background="?attr/suggestionsSecondaryColor"
|
||||
android:paddingEnd="@dimen/suggestions_padding_end"
|
||||
android:paddingStart="@dimen/suggestions_padding_start">
|
||||
<Button
|
||||
android:id="@+id/dismiss_button"
|
||||
style="?android:attr/borderlessButtonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:text="@string/suggestion_dismiss_button"
|
||||
android:textColor="?android:attr/textColorPrimary"/>
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
</androidx.cardview.widget.CardView>
|
||||
</FrameLayout>
|
||||
45
CarSettings/res/layout/summary_preference.xml
Normal file
45
CarSettings/res/layout/summary_preference.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 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.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
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:minHeight="?android:attr/listPreferredItemHeightSmall"
|
||||
android:tag="carUiPreference">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceTitle"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/summary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/entity_header_inner_margin"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
26
CarSettings/res/layout/summary_preference_widget.xml
Normal file
26
CarSettings/res/layout/summary_preference_widget.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<TextView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/widget_summary"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical|end"
|
||||
android:textAlignment="viewEnd"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorSecondary"/>
|
||||
25
CarSettings/res/layout/switch_widget.xml
Normal file
25
CarSettings/res/layout/switch_widget.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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.
|
||||
-->
|
||||
|
||||
<Switch
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/switch_widget"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:clickable="false"
|
||||
android:focusable="false"/>
|
||||
33
CarSettings/res/layout/time_picker.xml
Normal file
33
CarSettings/res/layout/time_picker.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017 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.FocusArea
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/settings_content_focus_area"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center">
|
||||
|
||||
<TimePicker
|
||||
android:id="@+id/time_picker"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:focusable="true"
|
||||
android:scaleX="1.6"
|
||||
android:scaleY="1.6"
|
||||
android:timePickerMode="spinner" />
|
||||
</com.android.car.ui.FocusArea>
|
||||
74
CarSettings/res/layout/top_level_preference.xml
Normal file
74
CarSettings/res/layout/top_level_preference.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?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.DrawableStateRelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/top_level_preference_background"
|
||||
android:clipToPadding="false"
|
||||
android:minHeight="@dimen/top_level_preference_min_height"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:tag="carUiPreference"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart">
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateImageView
|
||||
android:id="@android:id/icon"
|
||||
android:layout_width="@dimen/car_ui_preference_icon_size"
|
||||
android:layout_height="@dimen/car_ui_preference_icon_size"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginBottom="@dimen/car_ui_preference_content_margin_bottom"
|
||||
android:layout_marginEnd="@dimen/car_ui_preference_icon_margin_end"
|
||||
android:layout_marginTop="@dimen/car_ui_preference_content_margin_top"
|
||||
android:scaleType="fitCenter"
|
||||
style="@style/Preference.CarUi.Icon"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginBottom="@dimen/car_ui_preference_content_margin_bottom"
|
||||
android:layout_marginTop="@dimen/car_ui_preference_content_margin_top"
|
||||
android:layout_toEndOf="@android:id/icon"
|
||||
android:layout_toStartOf="@android:id/widget_frame"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.android.car.ui.uxr.DrawableStateTextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceTitle"/>
|
||||
|
||||
<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.CarUi.PreferenceSummary"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- Preference should place its actual preference widget here. -->
|
||||
<FrameLayout
|
||||
android:id="@android:id/widget_frame"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:layout_centerVertical="true"/>
|
||||
|
||||
</com.android.car.ui.uxr.DrawableStateRelativeLayout>
|
||||
33
CarSettings/res/layout/top_level_recyclerview.xml
Normal file
33
CarSettings/res/layout/top_level_recyclerview.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.
|
||||
-->
|
||||
|
||||
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<com.android.car.ui.FocusArea
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/settings_car_ui_focus_area"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<com.android.car.ui.recyclerview.CarUiRecyclerView
|
||||
android:id="@+id/top_level_recycler_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginRight="@dimen/top_level_recyclerview_margin_right"
|
||||
android:tag="carUiPreferenceRecyclerView"
|
||||
app:carUiSize="medium"
|
||||
app:enableDivider="true" />
|
||||
</com.android.car.ui.FocusArea>
|
||||
</merge>
|
||||
112
CarSettings/res/layout/usage_bytes_threshold_picker.xml
Normal file
112
CarSettings/res/layout/usage_bytes_threshold_picker.xml
Normal file
@@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_top"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintGuide_begin="@dimen/usage_pickers_margin_vertical"/>
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_start"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_begin="@dimen/usage_bytes_picker_margin_horizontal"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/bytes_threshold_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/usage_pickers_text_margin_end"
|
||||
android:focusable="true"
|
||||
android:focusableInTouchMode="true"
|
||||
app:layout_constraintBottom_toTopOf="@+id/guideline_bottom"
|
||||
app:layout_constraintEnd_toStartOf="@+id/bytes_units"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toStartOf="@+id/guideline_start"
|
||||
app:layout_constraintTop_toBottomOf="@+id/guideline_top">
|
||||
<EditText
|
||||
android:id="@+id/bytes_threshold"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:ems="@integer/data_usage_bytes_threshold_ems"
|
||||
android:inputType="numberDecimal"
|
||||
android:minWidth="@dimen/usage_bytes_picker_edit_text_min_width"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
</FrameLayout>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/up_arrow_container"
|
||||
android:layout_width="@dimen/touch_target_size"
|
||||
android:layout_height="@dimen/touch_target_size"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
app:layout_constraintEnd_toEndOf="@+id/bytes_units"
|
||||
app:layout_constraintStart_toStartOf="@+id/bytes_units"
|
||||
app:layout_constraintTop_toBottomOf="@+id/guideline_top">
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_keyboard_arrow_up"/>
|
||||
</FrameLayout>
|
||||
|
||||
<NumberPicker
|
||||
android:id="@+id/bytes_units"
|
||||
android:layout_width="@dimen/touch_target_size"
|
||||
android:layout_height="match_parent"
|
||||
android:theme="@style/NumberPickerStyle"
|
||||
app:layout_constraintBottom_toTopOf="@+id/down_arrow_container"
|
||||
app:layout_constraintEnd_toEndOf="@+id/guideline_end"
|
||||
app:layout_constraintStart_toEndOf="@+id/bytes_threshold_container"
|
||||
app:layout_constraintTop_toBottomOf="@+id/up_arrow_container"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/down_arrow_container"
|
||||
android:layout_width="@dimen/touch_target_size"
|
||||
android:layout_height="@dimen/touch_target_size"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
app:layout_constraintBottom_toTopOf="@+id/guideline_bottom"
|
||||
app:layout_constraintEnd_toEndOf="@+id/bytes_units"
|
||||
app:layout_constraintStart_toStartOf="@+id/bytes_units">
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_keyboard_arrow_down"/>
|
||||
</FrameLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_end"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintGuide_end="@dimen/usage_bytes_picker_margin_horizontal"/>
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_bottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintGuide_end="@dimen/usage_pickers_margin_vertical"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent">
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_top"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintGuide_begin="@dimen/usage_pickers_margin_vertical"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/subtitle_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="@dimen/usage_pickers_text_margin_end"
|
||||
android:text="@string/cycle_reset_day_of_month_picker_subtitle"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
app:layout_constraintBottom_toTopOf="@+id/guideline_bottom"
|
||||
app:layout_constraintEnd_toStartOf="@+id/cycle_reset_day_of_month"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/guideline_top"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/up_arrow_container"
|
||||
android:layout_width="@dimen/touch_target_size"
|
||||
android:layout_height="@dimen/touch_target_size"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
app:layout_constraintEnd_toEndOf="@+id/cycle_reset_day_of_month"
|
||||
app:layout_constraintStart_toStartOf="@+id/cycle_reset_day_of_month"
|
||||
app:layout_constraintTop_toBottomOf="@+id/guideline_top">
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_keyboard_arrow_up"/>
|
||||
</FrameLayout>
|
||||
|
||||
<NumberPicker
|
||||
android:id="@+id/cycle_reset_day_of_month"
|
||||
android:layout_width="@dimen/touch_target_size"
|
||||
android:layout_height="match_parent"
|
||||
android:theme="@style/NumberPickerStyle"
|
||||
app:layout_constraintBottom_toTopOf="@+id/down_arrow_container"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/subtitle_text"
|
||||
app:layout_constraintTop_toBottomOf="@+id/up_arrow_container"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/down_arrow_container"
|
||||
android:layout_width="@dimen/touch_target_size"
|
||||
android:layout_height="@dimen/touch_target_size"
|
||||
android:background="?android:attr/selectableItemBackground"
|
||||
app:layout_constraintBottom_toTopOf="@+id/guideline_bottom"
|
||||
app:layout_constraintEnd_toEndOf="@+id/cycle_reset_day_of_month"
|
||||
app:layout_constraintStart_toStartOf="@+id/cycle_reset_day_of_month">
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_keyboard_arrow_down"/>
|
||||
</FrameLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.Guideline
|
||||
android:id="@+id/guideline_bottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintGuide_end="@dimen/usage_pickers_margin_vertical"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
73
CarSettings/res/layout/usage_indicator_preference.xml
Normal file
73
CarSettings/res/layout/usage_indicator_preference.xml
Normal file
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||
android:orientation="vertical"
|
||||
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart">
|
||||
<TextView
|
||||
android:id="@android:id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/usage_indicator_preference_title_margin_top"
|
||||
android:layout_marginBottom="@dimen/usage_indicator_preference_title_margin_bottom"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@android:id/progress"
|
||||
style="?android:attr/progressBarStyleHorizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:minHeight="@dimen/usage_indicator_preference_progressbar_height"
|
||||
android:layout_height="wrap_content"
|
||||
android:progressDrawable="@drawable/color_progress_bar"/>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/progress_bar_labels"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/usage_indicator_preference_label_margin_top"
|
||||
android:layout_marginBottom="@dimen/usage_indicator_preference_label_margin_bottom"
|
||||
android:orientation="horizontal">
|
||||
<TextView android:id="@android:id/text1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<TextView android:id="@android:id/text2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@android:id/summary"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/usage_indicator_preference_summary_margin_bottom"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</LinearLayout>
|
||||
67
CarSettings/res/layout/wifi_tether_qr_code_preference.xml
Normal file
67
CarSettings/res/layout/wifi_tether_qr_code_preference.xml
Normal file
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2023 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.
|
||||
-->
|
||||
|
||||
<LinearLayout
|
||||
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:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
||||
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
||||
android:layout_marginTop="@dimen/qc_code_preference_margin"
|
||||
android:layout_marginBottom="@dimen/qc_code_preference_margin"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hotspot_qr_code_instruction"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="@dimen/qc_code_preference_margin"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"/>
|
||||
|
||||
<androidx.cardview.widget.CardView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:scaleType="fitCenter"
|
||||
android:antialias="true"
|
||||
android:layout_marginTop="@dimen/qc_code_preference_margin"
|
||||
android:layout_marginBottom="@dimen/qc_code_preference_margin"
|
||||
app:cardElevation="@dimen/card_view_elevation"
|
||||
app:cardCornerRadius="@dimen/rounded_corner_radius">
|
||||
<ImageView
|
||||
android:id="@+id/hotspot_qr_code"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"/>
|
||||
</androidx.cardview.widget.CardView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hotspot_qr_code_password"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="@dimen/qc_code_preference_margin"
|
||||
android:layout_marginBottom="@dimen/qc_code_preference_margin"
|
||||
android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"/>
|
||||
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/divider_preference_height"
|
||||
android:layout_marginBottom="@dimen/divider_preference_margin_top"
|
||||
android:layout_marginTop="@dimen/divider_preference_margin_bottom"
|
||||
style="@style/Preference.CarUi.Divider"/>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user