Skip to content

firebirdberlin/android-preferences

Repository files navigation

Android preferences library

Sponsoring

If you find this library useful, you can support its development:

Sponsor on GitHub Buy Me A Coffee

Installation

JitPack is a simple-to-use package repository for GitHub projects. To integrate android-preferences into your project, follow these steps:

  1. Add the JitPack repository to your root build.gradle:

    allprojects {
        repositories {
            // ... other repositories
            maven { url 'https://jitpack.io' }
        }
    }
  2. 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.

VersionPreference

Usage

<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>

About

Android preferences

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •