issue to select checkbox in onViewCreated()

前端 未结 2 930
被撕碎了的回忆
被撕碎了的回忆 2021-01-25 11:53

I need to select automatically all checkboxes when I launch my app in onViewCreated().

With this code:

@Override
public void onViewCreated(V         


        
2条回答
  •  礼貌的吻别
    2021-01-25 12:17

    Try with plAdapter.notifyDataSetChanged() after for loop ends. In adapter after set the value, you have to refresh the listview.

提交回复
热议问题