Java – view the cache of headers and footers in the list view
You can add a list view to a header and footer view Cache these views?
edit
Consider a layout of such content (essentially one):
>About 40 different fields are divided into 5 view groups > one annotation type layout, which can have any number of annotations that need to be expanded at will
Ideally, the scroll view would be a candidate for this choice But this made the choreographer complain about skipping more than 1000 frames
Another possible solution might be a list view with headers and footers The list view in some way consumes less memory and occupies the above scroll view
The problem of caching and grouping is that I try to understand that if there can be a view storage / retrieval mechanism, it will make it easier to call and listen to the audience, rather than a one-to-one method, such as getview ()
Edit2 I don't want to use scrolling view because it expands all the views in the beginning Make the activity / fragment consume a lot of memory
Solution
Yes listview has addfooterview and addheaderview
No, they are not
In particular, you can call both methods multiple times In this case, you will have more footer / header views, which will be displayed in the order of insertion