MaterialPreference

Additional

Language
Java
Version
v3.0.0 (Sep 22, 2018)
Created
Mar 7, 2016
Updated
Jul 30, 2019
Owner
Rikka (RikkaW)
Contributors
馮果 (fython)
Rikka (RikkaW)
Mygod
3
Activity
Badge
Generate
Download
Source code
APK file

Promotion

MaterialPreference

Based on support-preference from Android Support Library, adding a lot of exciting features.

Sample

How to use

  1. add dependencies

// replace <latest-release> with version above
implementation 'moe.shizuku.preference:preference:<latest-release>'
implementation 'moe.shizuku.preference:preference-dialog-android:<latest-release>'
//implementation 'moe.shizuku.preference:preference-dialog-appcompat:<latest-release>' // if you want to use appcompat version dialog
//implementation 'moe.shizuku.preference:preference-switchcompat:<latest-release>' // appcompat version of SwitchCompat, only need if you want to support pre-21
//implementation 'moe.shizuku.preference:preference-simplemenu:<latest-release>' // if you want try SimpleMenuPreference, on pre-21 it will fallback to ListPreference
  1. sample will tell you everything