If you find this library useful, you can support its development:
JitPack is a simple-to-use package repository for GitHub projects. To integrate android-preferences into your project, follow these steps:
-
Add the JitPack repository to your root
build.gradle:allprojects { repositories { // ... other repositories maven { url 'https://jitpack.io' } } }
-
Add the dependency to your module's
build.gradle(e.g.,app/build.gradle):dependencies { implementation 'com.github.firebirdberlin:android-preferences:<latest-version>' }
Replace
<latest-version>with the latest release version.
<de.firebirdberlin.preference.VersionPreference
android:title="My Application Name"
android:icon="@drawable/ic_clock"
android:key="version"
android:selectable="true">
<intent
android:action="android.intent.action.VIEW"
android:data="https://play.google.com/store/apps/details?id=my.package.name"/>
</de.firebirdberlin.preference.VersionPreference>