how to update the textview text depending on the state of a checkbox in listview

前端 未结 2 1984
没有蜡笔的小新
没有蜡笔的小新 2020-12-18 16:28

Here is My Custom ListViewAdapter

public class ListViewAdapter extends BaseAdapter{


    Viewholder holder;
    public ArrayList>         


        
2条回答
  •  青春惊慌失措
    2020-12-18 16:56

    istesd use

    holder.ckbox.setText(checkedItems[position]?"Added","Add");
    

    and remove

    holder.tvckboxText.setText(ckboxTextAdd[position]?"Added","Add"););
    

    this because it might not support the landscape view

提交回复
热议问题