Project requirements to the scrollview nested recelyview, but once the nested, recelyview item can not be recovery and reuse of the one-time loading all the item to come in, because every item has pictures on the low-end machine nearly oom, have a great god is there a way to solve this problem, the Internet also did find a suitable answer, layout is not changed, scrolview above there are a lot of content is not suitable for in recrlyview do a type of view,
CodePudding user response:
CoordinatorLayout, sliding nested can solve your question
CodePudding user response:
reference m - 1/f, oj response: CoordinatorLayout, sliding nested can solve this problem you share the UI is not final, then, is nested inside the scrollview, this is the full load problem, can't solve CodePudding user response:
? Why not share, with a two nestedscrollview recyclerview, now is just the same with you, CodePudding user response:
reference 3/f m - oj response: ? Why not share, with a two nestedscrollview recyclerview, now is just the same with you, UI, the top part is a graph, this need to be able to enlarge, but when rolled on to keep the same size is not the last to the toolbar, and then the following is a tablayout can switch different views, is one of the list, I'll use recelyview, you then need to slide effect as a whole including the top of the figure, figure there are a few lines of text, the every tablayout is a constant CodePudding user response:
refer to the 4th floor and Edwin van der SAR's reply: Quote: refer to the third floor m - oj response: ? Why not share, with a two nestedscrollview recyclerview, now is just the same with you, UI, the top part is a graph, this need to be able to enlarge, but go on to keep the same size is not the last to the toolbar, and then the following is a tablayout can switch different views, is one of the list, I'll use recelyview, you then need to slide effect as a whole including the top of the figure, figure there are a few lines of text, this is the same every tablayout A single recyclerview should also can make the effect you CodePudding user response:
It more simple, remove the ScrollView, throw to the above RecyclerView header, the throw to RecyclerView footer below Without the header, footer? Himself wrote a bai: https://blog.csdn.net/weimingjue/article/details/88190755