Help you to use android.support.v7.app.AlertDialog and android.support.v7.widget.SwitchCompat in Preferences including EditTextPreference
, ListPreference
, MultiSelectItemPreference
and SwitchPreference
.
帮助你在 Preference (包括文本编辑、单选列表、多选列表、开关) 中使用 android.support.v7 包提供的向下兼容。
Use EditTextPreferenceCompat
, ListPreferenceCompat
, MultiSelectItemPreferenceCompat
and SwitchPreferenceCompat
instead of EditTextPreference
, ListPreference
, MultiSelectItemPreference
and SwitchPreference
directly
直接用 EditTextPreferenceCompat
, ListPreferenceCompat
, MultiSelectItemPreferenceCompat
and SwitchPreferenceCompat
替换 EditTextPreference
, ListPreference
, MultiSelectItemPreference
and SwitchPreference
Some codes is from Internet. 部分代码来自于互联网。
Sina weibo 新浪微博: @某烧饼 Google Plus: +Fung Jichun Alipay 支付宝: [email protected] (我很乐意能收到一笔表示支持的小钱233喔)
The MIT License (MIT)
Copyright (c) 2015 Fython 某烧饼
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.