FormFiller

Android helper library to populate form fields with predefined data set

License

License

Categories

Categories

ORM Data
GroupId

GroupId

com.cocosw
ArtifactId

ArtifactId

formfiller
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

aar
Description

Description

FormFiller
Android helper library to populate form fields with predefined data set
Project URL

Project URL

https://github.com/soarcn/FormFiller
Source Code Management

Source Code Management

https://github.com/soarcn/FormFiller

Download formfiller

How to add to project

<!-- https://jarcasting.com/artifacts/com.cocosw/formfiller/ -->
<dependency>
    <groupId>com.cocosw</groupId>
    <artifactId>formfiller</artifactId>
    <version>1.0.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.cocosw/formfiller/
implementation 'com.cocosw:formfiller:1.0.0'
// https://jarcasting.com/artifacts/com.cocosw/formfiller/
implementation ("com.cocosw:formfiller:1.0.0")
'com.cocosw:formfiller:aar:1.0.0'
<dependency org="com.cocosw" name="formfiller" rev="1.0.0">
  <artifact name="formfiller" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.cocosw', module='formfiller', version='1.0.0')
)
libraryDependencies += "com.cocosw" % "formfiller" % "1.0.0"
[com.cocosw/formfiller "1.0.0"]

Dependencies

runtime (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib jar 1.3.72

Project Modules

There are no modules declared in this project.

FormFiller

Maven

Android helper library to populate form fields with predefined data set

Sample

Usage

class DemoApp : Application() {
    override fun onCreate() {
        super.onCreate()
        // Enable FormFiller for debug builds only
        if (BuildConfig.DEBUG) {
            FormFiller.Builder(this)
                // Fill the form by pressing f key from external keyboard    
                .keyCode(KeyEvent.KEYCODE_F)
                // Fill the form by double tapping on ui    
                .doubleTap()
                .scenario {
                    id(R.id.username, "username")
                    id(R.id.password, "password")
                }
                .build()
        }
    }
}

Advanced usage

Define different data-set and switch between them inside the app

            FormFiller.Builder(this)
                .doubleTap()
                // Enable scenario switcher and open ui by long pressing with 2 fingers on ui
                .enableScenariosSwitcher()
                .scenario {
                    id(R.id.username, "username")
                    id(R.id.password, "password")
                }
                .scenario("Unhappy") {
                    id(R.id.username, "wrong")
                    id(R.id.password, "wrong")
                }
                .build()
//select edittext by tag name
tag("username") {
   //manipulate edit text
   it.setText(Random.toString())
}

Download

    implementation 'com.cocosw:formfiller:1.0'

Versions

Version
1.0.0