#14 Android MVVM Architecture Tutorial - Data Binding in Fragment

#14 Android MVVM Architecture Tutorial - Data Binding in Fragment

Simplified Coding

5 лет назад

16,558 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@rahhi9792
@rahhi9792 - 06.07.2019 14:05

Sir, you are making good videos. thank you. Sir, I have a problem with my project. In recycleView, there are 12 items and each item have 3 buttons that are Yes, No, N/A. Click on yes button, the background of a button changed into green and for other also same. The main problem is that when I click the first item yes/no/NA button, the background of the button of item 1 and item 7 changed automatically in recycleView and also for 2 ---- 8 so on. Sir how to solve this problem only one button should be selected on click. Please help me

Ответить
@SathishKumar-hi6kg
@SathishKumar-hi6kg - 07.07.2019 16:39

thanq

Ответить
@raghavgoel9577
@raghavgoel9577 - 23.08.2019 21:57

Hello Belal, I hope you are doing well.
I am facing a problem with Data Binding with Fragment, I am implementing an interface with two methods named "onSuccess" and "onFailure" and when I override them in FragmentClass, it neither works not shows any error. It does not display toast.

Ответить
@paulprince7904
@paulprince7904 - 25.09.2019 08:50

public abstract class AppDatabase extends androidx.room.RoomDatabase {
im getting like this

Ответить
@m.irtizakhursheed3040
@m.irtizakhursheed3040 - 04.12.2019 14:36

Why you dont created AuthViewModel as Dependency Injection .

Ответить
@dilanfernando5460
@dilanfernando5460 - 31.03.2020 13:37

im getting this error
java.lang.ClassCastException: android.app.Application cannot be cast to org.kodein.di.KodeinAware

Ответить
@ac1dr3d
@ac1dr3d - 22.04.2020 21:25

Thank you sir.

Ответить
@gagansingh9642
@gagansingh9642 - 29.04.2020 11:31

hi, Im facing this error, java.lang.RuntimeException: Failed to call observer method
..
.. at com.commongame73.mvvmbysimplifiedcoding.databinding.ProfileFragmentBindingImpl.executeBindings(ProfileFragmentBindingImpl.java:161)

Ответить
@nayyelin2996
@nayyelin2996 - 22.06.2020 13:07

Better with subtitles,sir

Ответить
@neerajgoyal7667
@neerajgoyal7667 - 27.06.2020 15:40

Hello sir I got an error in profile fragment in 14 video please help me out. The error is type mismatch:inferred type is "com.example.ui.home.Profile.ProfileViewModel" but Profile.ProfileViewModel? Was expected.

Ответить
@bhaskarrajaryal6678
@bhaskarrajaryal6678 - 22.07.2020 14:42

ViewModelProviders is depreciated. Other way to initialize viewmodel??

Ответить
@AmitSharmaplus
@AmitSharmaplus - 07.08.2020 23:48

Just in case any one want to Concatenation two string inside xml using viewmodel
code: android:text="@{`Hello ` +viewmodel.user.display_name+ `,`}"

Ответить
@AmitSharmaplus
@AmitSharmaplus - 08.08.2020 00:03

For the ViewModelProviders deprecated : Use the constructors for  directly :
Example : viewModel = ViewModelProvider(this).get(HomeViewModel::class.java)

Ответить
@sagaravhad5198
@sagaravhad5198 - 27.08.2020 05:04

Simplified video.

Ответить
@surindersingh-hk6jm
@surindersingh-hk6jm - 28.01.2021 19:55

i have an error --> e: java.lang.IllegalStateException: Backend Internal error: Exception during file facade code generation

Ответить
@那個人-k5k
@那個人-k5k - 24.02.2021 13:38

Hi, Thank you for this tutorial. Because my English listening is not
good, could you open subtitles(auto generation)? Thank you a lot.

Ответить
@masummodi
@masummodi - 02.05.2021 09:06

Unable to resolve host "@t": No address associated with hostname
Is hosted API is down?

Ответить