You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'll look into it... You're using the adapter correctly... Just a few pointers for now, that you can check...
While inflating the Fragment through Databinding, you don't need to create a new Inflater... You do get an inflater object in onCreateView... fragmentHomeBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_home, container, false);
Secondly... You also don't need to call setAdapter explicitly on the RecyclerView... bindRecyclerView method takes care of that also... Hence your doOnNext can be omitted...
Anyway... I'll see if I can fix the No adapter attached issue, and will let you know soon...
Hi, i have this code on my fragment:
but when I run the app, i'm only get
If I test the same code on an Activity, it works (changing DataBindingUtil.inflate by DataBindingUtil.setContentView).
Is this the correct way to bind a recyclerView inside a fragment?
The text was updated successfully, but these errors were encountered: