Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 184.108.40.206 release ready!
Owner and Founder. Opencart
InputTextLayout is used to wrap an EditText and to show hint in floating label when user types in the EditText . It makes the form fields very stylish. We can also set & get errors when validating the input data. InputTextLayout is part of Design Support library.
InputTextLayout inherits constants from LinearLayout, ViewGroup and View.
To use InputTextLayout:
Example: Display Login Form using TextInputLayout with validation
Step 1: we need to add a library in build.gradle file in Android Studio:
Step 2: Create an xml file :
In above code we have wraped Edit Text into a TextInputLayout.
When user clicks on EditText area, hint floats up. User can see following UI
Step 3: Write code in java file.
Now, setError & setErrorEnable on TextInputLayout when validating the user input.
In above code, We are setting error on instance of TextInputLayout. If email address is empty or password length is less than 8 then it will show an error.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Great Product, Great Team, and Great Support Service. And if you want to add more features to the product, they can submit any idea that comes to your mind. They really care about their clients and we are really happy and honored to deal with Webkul.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.