is there any good exaple to do this?
# android
f
is there any good exaple to do this?
i
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
Thank you its very good form validator
And how can i implement my question in mvvm?
should i create an activity which handle the navigation with the fragments?
i
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