Skip to content

Qase/AndroidFormBuilder

Repository files navigation

Release Build Status codebeat badge API License: MIT Maintainer: kidal5 Qase: AndroidFormBuilder

AndroidFormBuilder

Easy to use android form builder.

Features

  • Very easy to use
  • Skinable
  • Lot of beautiful color variants
  • Easily extendable to new elements
  • Built-in input data validating
  • Sample app is ready to build

Installation

Click HERE.

Code example

Usage is simple

FormBuilder().
                apply{
                    //static elements
                    addElement(HeaderElement("Static elements"), true)
                    addElement(TextElement("TextElement value"), true)
                    addElement(OpenableHeaderTextElement("OpenableHeaderTextElement label", longerStringValues))
                    addSpace()
                    addElement(HeaderElement("Input elements"), true)
                    addElement(LabelSwitchElement("LabelSwitchElement label", true, showToastCheckboxCallback), true)
                    addSpace()
                    addElement(HeaderElement("Input validable elements"), true)
                    addElement(ActionElement(validateActionCallback, "Validate all elements"))
                    addSpace()
                }
                .buildForm(context, parentView, FormStyleBundle.colorBundleTwo())

Future development

  • new layouts
  • more color variants
  • send your requests

License

MIT