开发者

display item of listview

开发者 https://www.devze.com 2022-12-20 05:35 出处:网络
I have a list view having several items and it is mult开发者_Python百科ichoice list. I want to display the checked item of list view.

I have a list view having several items and it is mult开发者_Python百科ichoice list. I want to display the checked item of list view. how i can do this.can anyone help me???


Try this

m_cObjList.setOnItemClickListener( new AdapterView.OnItemClickListener() {

    public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
    // This will highlight the select view
    m_cObjAdapter.setSelected(arg2);                

  }
});
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号