Issue
I am using data mvvm architecture in my android app and filling xml item with data binding. in view model class I use AsyncTask
for get data from database and this makes me some trouble. UI thread is called first and my xml items remains empty. what must I do?
Solution
I find my solution. I just put notifyPropertyChanged(BR.item);
after filling my item and @Bindable
before getMethod
Answered By - faeze saghafi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.