Home > Net >  How to set delay time to List adapter default animation
How to set delay time to List adapter default animation

Time:12-21

Every thing in List Adapter Works fine. But I want to set delay time while it doing its default animation. It was like super speed. But I need set a delay of 500L

Consider a Page that has Edittext and Recyclerview. When the page open everything works fine. But when user typed any words in Edit Text filter process takes place. After filter I update the list by following code

someAdapter.apply {
   submitList(someList.toList())
}

Problem is default animation of List adaper is super speed.

CodePudding user response:

recyclerview.itemAnimator!!.changeDuration = 2000L

  • Related