Bad performance when use RecyclerView inside NestedScrollView
问题 I'm developing a search contact feature, in that screen, there is a RecyclerView inside NestedScrolView ( fillViewport = true ). Screen design: ( This design is accepted by customer, I can't change it ) After loading all contacts of current device into an ArrayList, the search results are filtered from this array. There is several cases that make the app very laggy : 1. When user type an input that have no result , then user clear search , I have to show all results again. The