小编yad*_*nan的帖子

AsyncLayout Inflation for Recyclerview

I am working with two recyclerview in single screen(For android TV).Each recyclerview have complex layout item.And it's taking time to load.I worked with asynclayoutinflator in activities.

    AsyncLayoutInflater inflater = new AsyncLayoutInflater(this);
    inflater.inflate(R.layout.main, null, callback);
Run Code Online (Sandbox Code Playgroud)

I want to know whether there is any ways to achieve the same with recyclerview. Problem I am facing is onbindviewholder is getting called before asyncinflation finished.

android asynchronous android-inflate layout-inflater android-recyclerview

5
推荐指数
1
解决办法
1743
查看次数