Simplistic, single input view form
Very inspired by the Minimal Format Interface.
Inspired by the form seen on the end of the PageLanes website
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.");
- 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.
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.