Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

litao0621/MinimalForm

Repository files navigation

MinimalForm

Simplistic, single input view form

Very inspired by the Minimal Format Interface.

Inspired by the form seen on the end of the PageLanes website

ScreenShot

Image

Sample apk

Usage

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

###See the layout code

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

and copy this into your libs directory.

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.

About

Simplistic, single input view form

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /