android - How to set ViewHolder to reuse View after dynamic addView in Recyclerview or Listview
伊谢尔伦
伊谢尔伦 2017-05-16 13:25:33
0
1
885

How to set up ViewHolder to reuse View after dynamic addView in Recyclerview or listview
The number is not fixed like talking about it

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
漂亮男人

You are not adding sub-items dynamically, you are dynamically updating the data set. You only need to insert the empty collection first, add the insert data method to the adapter, and then refresh the adapter. It does not involve multiple layouts. For multiple layouts, you can write multiple ViewHolder then specify the type.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template