Android App Development
iOS App Development
Flutter 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 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Hello Everyone, This blog is quite easy to understand and implement. We all use spinner to display a list of selectable options and make our app interface more interactive . In order to make app UI more interactive, we all try to set and point the error exactly at the view which is left empty. Let’s see how to do this on a spinner.
Concept : A Spinner in android is actually a collection of textviews that are listed according to the number of entries in the list. All you need to do is, to check if the spinner is empty and then select the default text view and set error message on that text view.
How to do this :
CODE :
calling error method if spinner is empty :
spinner error method :
And it is done . Check it out and I believe this makes UI better.
Keep coding and Keep Sahring.
References: http://stackoverflow.com/a/28582158
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Why is it? Any mistyped?
Thanks
Can you share the exact code that you are using ??
Also, for debugging yourself you can try to have a look at these points.
1) You are getting spinner object correctly. (By logging the instance of spinner, it should not be null ). 2) printing the value of actualPositionOfMySpinner variable. 3) Try calling the spinner error directly.
If still there is something wrong, then Please do share the code snippets you are using and i will try to help you as soon as possible.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
We've bought a Shopware Extension which is a hybrid App, which we can now offer in the Google Play Store and the IOS App Store. I'am still impressed how fast and how sharp the support team leads us through every process of the App-Store clarification. Very fast and useful response.
Markus Walter
Founder, Das Apartment Living
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.