During my work I faced a serious problem: . flash effect when refreshing items of the BrowseFragment ’s rows source: https://developer.android.com/training/tv/playback/browse.html Introduction Before talking about the solution of the problem, Let’s introduce the . The is a for creating media catalog. In the media catalog, we can browse categories from the left, and select contents of the selected category on the right. The media catalog is composed of a and a . A renders the elements of its as a set of rows in a vertical list. BrowseFragment BrowseFragment fragment RowsFragment HeadersFragment BrowseFragment ObjectAdapter media catalog Now let’s imagine we want to refresh every 5 seconds the data of the with a background task.How can we do that ? RowsFragment First solution: just update the adapter The use an to display data. We just need to:1. clear the items of the adapter ( )2. add new items to the adapter( ) BrowseFragment ArrayObjectAdapter clear addAll Problem: the flash effect Every time there is a refresh, the fragment blinks. The flash effect is caused by the adapter notifying the UI for each operation on the items. As we can see the method clear() and addAll() have a notify method of have a notify method: ArrayObjectAdapter public void clear() {int itemCount = mItems.size();if (itemCount == 0) {return;}mItems.clear(); //notifies UI} notifyItemRangeRemoved(0, itemCount); public void addAll(int index, Collection items) {int itemsCount = items.size();if (itemsCount == 0) {return;}mItems.addAll(index, items); //notifies UI} notifyItemRangeInserted(index, itemsCount); Second solution: your own adapter: we can create our own adapter and choose when and how to notify the changes on the items. I created a custom with a new replaceAll() method. ObjectAdapter public void replaceAll(Collection items){int itemsCount = items.size();if (itemsCount == 0){return;}** mItems.clear();mItems.addAll(index, items);notifyItemRangeChanged(0, itemsCount);**} Show me the code The full class is here: References: _A media app that runs on a TV needs to allow users to browse its content offerings, make a selection, and start playing…_developer.android.com Creating a Catalog Browser | Android Developers N E X T → Documenting My Android Adventure If you enjoyed this post, you will love to to my newsletter. Get my cheat sheet: “ Before you go… subscribe Android Studio keyboard shortcuts cheat sheet”.