Library to create preference screens using Conductor controllers instead of fragments.
|
2 years ago | |
---|---|---|
gradle | 2 years ago | |
preference | 2 years ago | |
.gitignore | 6 years ago | |
.jitpack.yml | 3 years ago | |
LICENSE | 4 years ago | |
README.md | 2 years ago | |
build.gradle | 2 years ago | |
gradle.properties | 4 years ago | |
gradlew | 2 years ago | |
gradlew.bat | 2 years ago | |
settings.gradle | 7 years ago |
Library to create preference screens using Conductor controllers instead of fragments.
You can include this library in your project with JitPack.
repositories {
maven { url = "https://www.jitpack.io" }
}
dependencies {
implementation 'com.github.tachiyomiorg:conductor-support-preference:3.1.8'
}
Create a class that inherits from PreferenceController
and include your preferences in the onCreatePreferences
method,
either by inflating an xml with addPreferencesFromResource
or manually creating them, though you will need to provide
a ContextThemeWrapper
if you use the latter and want to have a material theme.
Finally, use Router::pushController
to show your preference controller.