janishar / android-mvvm-architecture

This repository contains a detailed sample app that implements MVVM architecture using Dagger2, Room, RxJava2, FastAndroidNetworking and PlaceholderView
https://janisharali.com
Apache License 2.0
2.95k stars 936 forks source link

performDataBinding() take too much time #44

Open m-mirghafari opened 5 years ago

m-mirghafari commented 5 years ago

Hi @amitshekhariitbhu... First, i would like to say thanks for your awesome lib

i have problem in my project. when i start new activity performDataBinding() take to much time (sometimes more than 5-6 sec) and new activity start so slow. what is the cause of this problem? & is there any way to fix this?

Thanks 👍

amitshekhariitbhu commented 5 years ago

Let us check

anandwana001 commented 5 years ago

@parsibit Could you please brief more, on which activity you are getting this issue? it will be also helpful for us if you could share your code where you are getting this problem!!

I had checked this sample app, run on my device and it is working fine for me.

m-mirghafari commented 5 years ago

it happened in all activities. in some of them take less time and in some more. (1-6 sec) i printed some log and It turned out that the problem is from this part:

mViewDataBinding = DataBindingUtil.setContentView(this, getLayoutId()); in performDataBinding()

anandwana001 commented 5 years ago

on which device you are running this sample app?

m-mirghafari commented 5 years ago

on which device you are running this sample app?

xiaomi mi5, huawei nova 3, android studio emulator

fereydunRashidabadi commented 5 years ago

my friend i have this problem too

kamaubrian commented 5 years ago

I am also facing the same issue, mviewDataBinding = DataBindingUtil.setContentView(this, getLayoutId());

m-mirghafari commented 5 years ago

on which device you are running this sample app?

did you have any helpful suggestion?