Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/litao0621/minimalform

Simplistic, single input view form
https://github.com/litao0621/minimalform

Last synced: about 2 months ago
JSON representation

Simplistic, single input view form

Awesome Lists containing this project

README

        

MinimalForm
===========

Simplistic, single input view form

_Very inspired by the [Minimal Format Interface][5]._

Inspired by the form seen on the end of the [PageLanes website](http://www.pagelanes.com/)

# ScreenShot

![Image][1]

[Sample apk][4]

# Usage

``` java
MinimalFormLayout mForm=(MinimalFormLayout)findViewById(R.id.form);
mForm.build(List titlelist);
//mForm.build(List titlelist,List inputtype);
//mForm.build(List titlelist,List inputtype,List verify,List errormsg);
mForm.setOnSubmitListener(SubmitListener listener);
mForm.setSuccessMsg("Thank you! We'll be in touch.");

```

###[See the layout code][2]

* Add some view to minimalformlayout(TextView[1,2,3],EditText,ImageButton,ProgressBar)
* Add the drawable for the progress bar [like this][3]
* Add tag to a different TextView (title,validator,page)

and copy this into your `libs` directory.
- [`NineOldAndroid-2.4.0`](https://github.com/downloads/JakeWharton/NineOldAndroids/nineoldandroids-2.4.0.jar)

- [`MinimalForm-1.1`](https://github.com/sd6352051/MinimalForm/blob/master/releases/minimalform-1.1.jar?raw=true)

# License
Copyright 2014 litao.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

[1]: https://raw.githubusercontent.com/sd6352051/MinimalForm/master/screenshot/form.gif
[2]: https://github.com/sd6352051/MinimalForm/blob/master/app/src/main/res/layout/activity_main.xml#L8-L67
[3]: https://github.com/sd6352051/MinimalForm/blob/master/app/src/main/res/drawable/progressbar_shape.xml
[4]: https://github.com/sd6352051/MinimalForm/blob/master/releases/sample.apk?raw=true
[5]: https://github.com/codrops/MinimalForm