MVVM pattern in Android
0
I'm starting MVVM pattern and would like to know if I'm doing well with this. Here is the link from my repository on GitHub. Does my application even implement MVVM? Are there any suggestions or opinions about my code? How am I going? Here's a quick example of how I'm doing. Please see my application in my repository, it's just a simple project. binding.getViewModel().getAllUsers().observe(this, new Observer<List<User>>() { @Override public void onChanged(@Nullable List<User> pessoas) { //update recyclerview when my list my database that returns liveData is changed userAdapter.addUserToList(pessoas); } });
java android mvvm
share | imp...