Android Development Tutorial – MVVM Design Patterns Login Validation


Link donate :
Facebook :

In this tutorial , i will show you how to make simple Login valid app by use MVVM Design Pattern

android development tutorial,
android programming tutorial,
android app development tutorial,
android tutorial for beginners ,
android app tutoria,
android studio tutorial,
learn android programming ,
android developer tutorial ,
android programming,
android development,
android studio tutorial for beginners,
android course,
android training,
android development course,
android app development course


Xem thêm bài viết khác:


  1. this simple login application is made by MVVM, we have to Create so many classes and methods. so can you please elaborate me what are the benefits and advantges for using MVVM in this app?

  2. app:onClick="@{loginmodelView::onLoginClicked} this is not accepted by my code instead of that android:onClick="@{(v)-> loginmodelView.onLoginClicked(v)}" this worked WHY?? Following errors also coming whyi resolved but i want o know exact reason of occured issue 1) Identifiers must have user defined types from the XML file. 2)cannot find symbol class LoginFragMvvm BindingImpl.

  3. Sir, 
    I've follow the tutorial step by step but when I build, the "generatedJava" package have a class "ActivityMainBinding" and there has some error : error: cannot find symbol class ViewModel
    when I import it with : import com.example.vincenttieng.perfumemvvm.ViewModel;

    Could you help me ? Thanks

  4. "Caution: A ViewModel must never reference a view, Lifecycle, or any class that may hold a reference to the activity context." straight from the android page on ViewModels!

  5. Great tutorial, but addTextChangedListener just keeps on giving me error that the attribute 'packagename:addTextChangedListener' is not found 🙁

  6. Caution: A ViewModel must never reference a view, Lifecycle, or any class that may hold a reference to the activity context.

  7. This is INCORRECT and one of the worst tutorials I have ever seen TBH! This is hybrid of MVP + MVVM because you are using callbacks and interface to deliver the result (login success or failed). In MVVM, the ViewModel is "Stream" of data / UI State where the View (Activity) "Observes" for the change. You should use RxJava or LiveData for this purpose.
    Also the ViewModel shouldn't have the reference to android framework like View, TextWatcher. That's the purpose of MVVM to separate the View with the display and business logic.

  8. yeh dear it's great i suggest you my dear to continues the php and android using mysql database and apply this functionality using php& mysql . thanks for your time .


Please enter your comment!
Please enter your name here