How to set up ViewHolder to reuse View after dynamic addView in Recyclerview or listview
The number is not fixed like talking about it
小伙看你根骨奇佳,潛力無(wú)限,來(lái)學(xué)PHP伐。
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.