florent37 / FiftyShadesOf

An elegant context-care loading placeholder for Android
Apache License 2.0
1.11k stars 147 forks source link

How to apply it on recyclerview #7

Open gp-sattar opened 6 years ago

gp-sattar commented 6 years ago

Is there any way to show loading on child view of Recylerview

carlosjs23 commented 6 years ago

try populating the recyclerview at launch with fake data while the real data is coming.

Edit: I tried a workaround, I have created several views that simulate my RECYCLER and I have applied FiftyShades to them. When the information finally arrives I have hidden the simulated views and stopped the animation.

ghost commented 6 years ago

@carlosjs23 Where should I start calling this method?

FiftyShadesOf.with(context) .on(R.id.view) .start();

On Activity or Adapter?

I want to know the answer, thank you.

zhubinsheng commented 2 years ago

当真实数据到来时,尝试在启动时用虚假数据填充 recyclerview。

编辑:我尝试了一种解决方法,我创建了几个模拟我的 RECYCLER 的视图,并将 FiftyShades 应用于它们。当信息最终到达时,我隐藏了模拟视图并停止了动画。

any update?

carlosjs23 commented 2 years ago

@zhubinsheng what's your question or issue?