android - RecyclerView with LinearLayoutManager with header view that doesn't recycle -


i want listview style recyclerview header on top, , don't want header view recycled, ever.

i'm totally new recyclerview , linearlayoutmanager think want shouldn't difficult extending linearlayoutmanager.

additional info in case needed, think above enough:

i have recyclerview header view @ position 0. part easy enough answers. view gets recycled, causing lots of issues edittext views in header (trying keep focus, restore focus, keep caret visible, not weird things auto-correct feature, keep typing while edittext technically gone/recycled, etc). simple solution not have view recycled, think possible custom layout manager, have no idea begin.

i can't place header view above list, because want scroll list (it's tall fixed @ top of screen time).

layoutmanager has layoutmanager#ignoreview(view) interface according documentation,

flags view not scrapped or recycled.

looks need here

edit google devs commented (here) flag serving other purpose, not gonna solve "recyclerview header" problem. however, working on solution, hold on tight , stay tuned


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -