Join Slack
Powered by
is there any good exaple to do this?
# android
f
fradiati
05/29/2019, 11:01 AM
is there any good exaple to do this?
i
Ive Vasiljevic
05/29/2019, 11:39 AM
There are a couple of libs and examples if you google "android input validation":
https://github.com/wajahatkarim3/EasyValidation
https://medium.com/artisans-of-tech/handling-validating-user-input-more-with-sauciness-in-android-with-java-d1bbf10d767
https://github.com/ShabanKamell/FormValidator
I haven't actually used any of these, but I am planning to implement the same thing into my application although I decided to make my own utility class to check user input from text fields. Hope it helps 😃
f
fradiati
05/29/2019, 11:57 AM
Thank you its very good form validator
fradiati
05/29/2019, 11:57 AM
And how can i implement my question in mvvm?
fradiati
05/29/2019, 11:58 AM
should i create an activity which handle the navigation with the fragments?
i
Ive Vasiljevic
05/29/2019, 12:15 PM
Yes. If you want to follow the principles of navigation architecture component you should create an Activity which has a NavHostFragment. More info ->
https://developer.android.com/guide/navigation/navigation-getting-started
For starters you can use this application architecture. There are some examples in this official guide ->
https://developer.android.com/jetpack/docs/guide
Open in Slack
Previous
Next