Skip to content

wordpress-mobile/PersistentEditText-Android

Repository files navigation

PersistentEditText

PersistentEditText is a subclass of the EditText widgets that helps you saving and retrieving user entered text.

Example Usage

You can add it as a library in your build.gradle file. PersistentEditText is hosted on the maven central repository. For instance:

dependencies {
    // use the latest 1.x version
    compile 'org.wordpress:persistentedittext:1.+'
}

Sample usage:

<org.wordpress.persistentedittext.PersistentEditText
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:id="@+id/my_id"
    app:persistenceEnabled="true"/>

Hack it

Directory structure

|-- PersistentEditText
|   |-- build.gradle      # main build file
|   `-- src
|       |-- androidTest   # tests
|       `-- main          # main code and resources
|-- README.md
|-- local.properties
`-- settings.gradle

Build

  • Setup

Create your local.properties file or copy it from another project, then you can generate the aar file:

$ echo "sdk.dir=YOUR_SDK_DIR" > local.properties
  • Build

    $ ./gradlew build

  • Publish to bintray:

$ ./gradlew assemble publishToMavenLocal bintrayUpload -PbintrayUser=XXX -PbintrayKey=XXX -PdryRun=false

Apps that use this library

LICENSE

This library is dual licensed unded MIT and GPL v2.

CHANGELOG

1.0

  • Initial release

About

Android EditText subclass with persistence

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
LICENSE-GPL
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages