I have this one fragment that loads tons of data and display it into recyclerView. If I open this fragment directly without waiting for transition completed the transition will become choppy because the thread is throttled by recyclerView update data
So I want to delay this update data until fragment transition completed.
But sadly I have yet to find any way to listen to fragment transition completed so my current approach is to delay the data update for several miliseconds until using Handler() , but I believe this is very hacky and not elegant solution
Handler().postDelayed({
//do something
}, 500)
I need help to know what method should I call to listen to the fragment transition completed . Thank youuu