Tsung-Mao Fang b29d495fd4 Extract footer preference as a widget lib
Currently, developer needs to import SettingsLib to use
footer preference. But the size of SettingsLib is too huge.

We extract the footer preference as a lib so that developer
only needs to import a small lib for using footer.

Test: Rebuilt apk, and see the footer preference
Fix: 173088235
Change-Id: I35ba99a49c7a13542d79f0340eecdbe9844102d0
2020-12-07 16:10:08 +08:00

54 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<declare-styleable name="RestrictedPreference">
<!-- The user restriction on which the preference disabled by admin state will be based on. -->
<attr name="userRestriction" format="string" />
<!-- If true then we can use enabled/disabled by admin strings for summary (android.R.id.summary). -->
<attr name="useAdminDisabledSummary" format="boolean" />
</declare-styleable>
<declare-styleable name="RestrictedSwitchPreference">
<!-- If true, an additional summary will be added in addition to the existing summary and
this will be used for enabled/disabled by admin strings leaving android.R.id.summary untouched.
As such when this is true, useAdminDisabledSummary will be overwritten to false. -->
<attr name="useAdditionalSummary" format="boolean" />
<!-- This is used as summary for restricted switch preferences, default value is
@string/disabled_by_admin (Disabled by administrator). -->
<attr name="restrictedSwitchSummary" format="reference" />
</declare-styleable>
<declare-styleable name="WifiEncryptionState">
<attr name="state_encrypted" format="boolean" />
</declare-styleable>
<declare-styleable name="WifiMeteredState">
<attr name="state_metered" format="boolean" />
</declare-styleable>
<declare-styleable name="WifiSavedState">
<attr name="state_saved" format="boolean" />
</declare-styleable>
<attr name="wifi_signal" format="reference" />
<attr name="wifi_friction" format="reference" />
<!-- Workaround for b/74248169. These are duplicates of attrs in AndroidX preferences. -->
<attr name="preferenceStyle" format="reference" />
<attr name="switchPreferenceStyle" format="reference" />
</resources>