Description
An Android library to build form and form validations easily.
FormBuilder alternatives and similar packages
Based on the "Animations" category.
Alternatively, view FormBuilder alternatives based on common mentions on social networks and blogs.
-
Lottie for Android, iOS, and React Native
Render After Effects animations natively on Android and iOS, Web, and React Native -
UltimateAndroidReference
:rocket: Ultimate Android Reference - Your Road to Become a Better Android Developer -
ListViewAnimations
DISCONTINUED. An Android library which allows developers to easily add animations to ListView items -
NineOldAndroids
DISCONTINUED. Android library for using the Honeycomb animation API on all versions of the platform back to 1.0! -
Rebound
DISCONTINUED. A Java library that models spring dynamics and adds real world physics to your app. -
shimmer-android
DISCONTINUED. An easy, flexible way to add a shimmering effect to any view in an Android app. -
PhotoEditor
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories. -
android-flip
DISCONTINUED. A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android -
ChatKit for Android
Android library. Flexible components for chat UI implementation with flexible possibilities for styling, customizing and data management. Made by Stfalcon -
RecyclerViewItemAnimators
An Android library which provides simple Item animations to RecyclerView items -
ViewPagerTransforms
Library containing common animations needed for transforming ViewPager scrolling for Android v13+. -
FabulousFilter
Android library to animate Floating Action Button to Bottom Sheet Dialog and vice-versa -
ShimmerLayout
DEPRECATED - Memory efficient shimmering effect for Android applications by Supercharge. -
Rich Path Animator
DISCONTINUED. 💪 Rich Android Path. 🤡 Draw as you want. 🎉 Animate much as you can. -
Stfalcon ImageViewer
A simple and customizable Android full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures -
BaseAnimation
BaseAnimation network Android animation set, custom controls, nearly 200 kinds of source code! BaseAnimation, if a new version is updated automatically to remind everyone, I hope everyone will contribute their animated XML files or other source, together to create this open source app! -
EasyAndroidAnimations
Easy Android Animations is an animation library that aims to make android animations easier, with 50+ builtin animations, it allows you to introduce many complex animation effects in your application with one or two lines of code. -
ColorPickerView
🎨 Android colorpicker for getting colors from any images by tapping on the desired color. -
PreLollipopTransition
Simple tool which help you to implement activity and fragment transition for pre-Lollipop devices. -
EasyFlipView
💳 A quick and easy flip view through which you can create views with two sides like credit cards, poker cards etc. -
WhatTodo
A Simple Todo app design in Flutter to keep track of your task on daily basis. Its build on BLoC Pattern. You can add a project, labels, and due-date to your task also you can sort your task on the basis of project, label, and dates -
TransitionPlayer
Android library to control Transition animates. A simple way to create a interactive animation. -
Road Runner
Road Runner is a library for android which allow you to make your own loading animation using a SVG image -
Android File Picker🛩️
FilePicker is a small and fast file selector library that is constantly evolving with the goal of rapid integration, high customization, and configurability~ -
AppIntroAnimation
AppIntroAnimation is a set of code snippets to make cool intro screen for your app with special Image Translation and Transformation animation effects. It is very easy to use and customize without adding third party library integrations. -
Youtube UI/UX Animation
With MVVM Architecture pattern using Android Architecture Components This is a sample app demonstrating Youtube player animation using constraint layout -
Dachshund Tab Layout
Extended Android Tab Layout with animated indicators that have continuous feedback.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of FormBuilder or a related project?
README
FormBuilder
An Android library to build form and form validations easily.
Example
COMING SOON
Requirements
Android 4.3+
Installation
Add edit your build.gradle file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Then add as dependency to yout app/build.gradle
dependencies {
...
compile 'com.github.dariopellegrini:FormBuilder:v0.9.2'
}
Usage
This library let you to create forms and add them in a LinearLayout. If you want to scroll this linear layout remember to add it inside a ScrollView. Here is an example:
LinearLayout mLinearLayout;
FormBuilder formBuilder;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
setContentView(R.layout.activity_main);
mLinearLayout = (LinearLayout) findViewById(R.id.linearLayout);
formBuilder = new FormBuilder(this, mLinearLayout);
List<FormObject> formObjects = new ArrayList<FormObject>();
formObjects.add(new FormElement()
.setTag("text") // Tag is necessary in order to retrieve values
.setHint("text") // Hint is the placeholder of the generated EditText
.setType(FormElement.Type.TEXT) // Type of form
.setEnabled(true) // Enable or not the EditText (default true)
.setRequired(true) // For validation purpose (default false)
);
formObjects.add(new FormElement().setTag("email").setHint("email").setType(FormElement.Type.EMAIL));
formObjects.add(new FormElement().setTag("phone").setHint("phone").setType(FormElement.Type.PHONE));
formObjects.add(new FormButton()
.setTitle("Go!")
.setBackgroundColor(Color.RED)
.setTextColor(Color.WHITE)
.setRunnable(new Runnable() {
@Override
public void run() {
boolean isValid = formBuilder.validate();
Log.i("Forms", formBuilder.formMap.toString());
}
})
);
formBuilder.build(formObjects);
}
Details
It's possible to add different type of form.
FormBuilder formBuilder = new FormBuilder(this, mLinearLayout);
List<FormObject> formObjects = new ArrayList<FormObject>();
// Header
formObjects.add(new FormHeader().setTitle("Hello"));
// Simple text
formObjects.add(new FormElement().setTag("text").setHint("text").setType(FormElement.Type.TEXT));
// Simple text without placeholder animation (for long text for example)
formObjects.add(new FormElement().setTag("view").setHint("view").setType(FormElement.Type.TEXTVIEW));
// E-mail
formObjects.add(new FormElement().setTag("email").setHint("email").setType(FormElement.Type.EMAIL));
// Phone
formObjects.add(new FormElement().setTag("phone").setHint("phone").setType(FormElement.Type.PHONE));
// Number
formObjects.add(new FormElement().setTag("number").setHint("number").setType(FormElement.Type.NUMBER));
// Password
formObjects.add(new FormElement().setTag("password").setHint("password").setType(FormElement.Type.PASSWORD));
// Postal code
formObjects.add(new FormElement().setTag("zip").setHint("zip").setType(FormElement.Type.ZIP));
// Date type: it's possible to set date format (default is "ddMMyyyy")
formObjects.add(new FormElement().setTag("date").setHint("date").setType(FormElement.Type.DATE).setDateFormat("dd-MM-yyyy"));
// Time type: it's possible to set time format (default is "HH:mm:ss")
formObjects.add(new FormElement().setTag("time").setHint("time").setType(FormElement.Type.TIME).setTimeFormat("HH:mm"));
// Single selection
List<String> arrayList = new ArrayList<String>();
arrayList.add("hello");
arrayList.add("hi");
arrayList.add("goodmorning");
formObjects.add(new FormElement().setTag("single").setHint("single").setType(FormElement.Type.SELECTION).setOptions(arrayList));
// Multiple selection
List<String> arrayList2 = new ArrayList<String>();
arrayList2.add("hello2");
arrayList2.add("hi2");
arrayList2.add("goodmorning2");
formObjects.add(new FormElement().setTag("multiple").setHint("multiple").setType(FormElement.Type.MULTIPLE_SELECTION).setOptions(arrayList2));
formBuilder.build(formObjects);
// Button: it's possible to set background color, text color and a runnable that will be executed once the button is pressed.
formObjects.add(new FormButton()
.setTitle("Go!")
.setBackgroundColor(Color.RED)
.setTextColor(Color.WHITE)
.setParams(layoutParams)
.setRunnable(new Runnable() {
@Override
public void run() {
Log.i("Forms", formBuilder.formMap.toString());
}
})
);
Retrieve values
Values inserted are saved inside a map of the object FormBuilder, using tags as key.
String textValue = formBuilder.formMap.get("text").getValue();
Layout
Every object inside a form has a params attribute which represent LayoutParams of the generated form.
// This will create a form of type TEXTVIEW with a height of 320.
final FormElement formElement = new FormElement().setTag("view")
.setHint("view")
.setType(FormElement.Type.TEXTVIEW)
.setParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, 320));
Validation
To make a validation simply call
boolean isValid = formBuilder.validate();
This will show an error on all forms that has been set as required.
It's possible to change error content on each form element.
formObjects.add(new FormElement()
.setTag("text")
.setHint("text")
.setType(FormElement.Type.TEXT)
.setErrorMessage("You can learn from this error"));
Every form element can accept a customized code for its validation.
final FormElement formElement = new FormElement().setTag("view").setHint("view").setType(FormElement.Type.TEXTVIEW));
formElement.setFormValidation(new FormValidation() {
@Override
public boolean validate() {
return formElement.getValue().length() > 5;
}
}
).setErrorMessage("Too short");
TODO
- Add different types of errors.
- Add SPINNER type.
- Testing.
Author
Dario Pellegrini, [email protected]