Loading packages/SettingsLib/MainSwitchPreference/res/layout-v31/settingslib_main_switch.xml 0 → 100644 +25 −0 Original line number Diff line number Diff line <?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. --> <Switch xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="48dp" android:clickable="false" android:focusable="false" android:theme="@style/Switch.SettingsLib" /> packages/SettingsLib/MainSwitchPreference/res/layout-v31/settingslib_main_switch_bar.xml +1 −8 Original line number Diff line number Diff line Loading @@ -47,14 +47,7 @@ android:textAppearance="?android:attr/textAppearanceListItem" style="@style/MainSwitchText.Settingslib" /> <Switch android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="48dp" android:layout_gravity="center_vertical" android:focusable="false" android:clickable="false" android:theme="@style/Switch.SettingsLib"/> <include layout="@layout/settingslib_main_switch" /> </LinearLayout> </LinearLayout> Loading packages/SettingsLib/MainSwitchPreference/res/layout-v33/settingslib_main_switch_bar.xml +1 −8 Original line number Diff line number Diff line Loading @@ -49,14 +49,7 @@ android:lineBreakWordStyle="phrase" style="@style/MainSwitchText.Settingslib" /> <Switch android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="48dp" android:layout_gravity="center_vertical" android:focusable="false" android:clickable="false" android:theme="@style/Switch.SettingsLib"/> <include layout="@layout/settingslib_main_switch" /> </LinearLayout> </LinearLayout> Loading packages/SettingsLib/MainSwitchPreference/res/layout/settingslib_main_switch.xml 0 → 100644 +25 −0 Original line number Diff line number Diff line <?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. --> <Switch xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clickable="false" android:focusable="false" android:theme="@style/SwitchBar.Switch.Settingslib" /> packages/SettingsLib/MainSwitchPreference/res/layout/settingslib_main_switch_bar.xml +1 −8 Original line number Diff line number Diff line Loading @@ -38,13 +38,6 @@ android:layout_marginStart="@dimen/settingslib_switchbar_subsettings_margin_start" android:textAlignment="viewStart"/> <Switch android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:focusable="false" android:clickable="false" android:theme="@style/SwitchBar.Switch.Settingslib"/> <include layout="@layout/settingslib_main_switch" /> </LinearLayout> Loading
packages/SettingsLib/MainSwitchPreference/res/layout-v31/settingslib_main_switch.xml 0 → 100644 +25 −0 Original line number Diff line number Diff line <?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. --> <Switch xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="48dp" android:clickable="false" android:focusable="false" android:theme="@style/Switch.SettingsLib" />
packages/SettingsLib/MainSwitchPreference/res/layout-v31/settingslib_main_switch_bar.xml +1 −8 Original line number Diff line number Diff line Loading @@ -47,14 +47,7 @@ android:textAppearance="?android:attr/textAppearanceListItem" style="@style/MainSwitchText.Settingslib" /> <Switch android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="48dp" android:layout_gravity="center_vertical" android:focusable="false" android:clickable="false" android:theme="@style/Switch.SettingsLib"/> <include layout="@layout/settingslib_main_switch" /> </LinearLayout> </LinearLayout> Loading
packages/SettingsLib/MainSwitchPreference/res/layout-v33/settingslib_main_switch_bar.xml +1 −8 Original line number Diff line number Diff line Loading @@ -49,14 +49,7 @@ android:lineBreakWordStyle="phrase" style="@style/MainSwitchText.Settingslib" /> <Switch android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="48dp" android:layout_gravity="center_vertical" android:focusable="false" android:clickable="false" android:theme="@style/Switch.SettingsLib"/> <include layout="@layout/settingslib_main_switch" /> </LinearLayout> </LinearLayout> Loading
packages/SettingsLib/MainSwitchPreference/res/layout/settingslib_main_switch.xml 0 → 100644 +25 −0 Original line number Diff line number Diff line <?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. --> <Switch xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="wrap_content" android:clickable="false" android:focusable="false" android:theme="@style/SwitchBar.Switch.Settingslib" />
packages/SettingsLib/MainSwitchPreference/res/layout/settingslib_main_switch_bar.xml +1 −8 Original line number Diff line number Diff line Loading @@ -38,13 +38,6 @@ android:layout_marginStart="@dimen/settingslib_switchbar_subsettings_margin_start" android:textAlignment="viewStart"/> <Switch android:id="@android:id/switch_widget" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:focusable="false" android:clickable="false" android:theme="@style/SwitchBar.Switch.Settingslib"/> <include layout="@layout/settingslib_main_switch" /> </LinearLayout>