开发者

multi-column ListView onClickListener responds to a column in a row?

开发者 https://www.devze.com 2023-04-08 15:41 出处:网络
In Android ListView it has OnItemClickListener() which responds to a ROW I clicked.But what if my ListView has multicolumn and I want to have an event that responds to a column 开发者_JAVA百科in a row

In Android ListView it has OnItemClickListener() which responds to a ROW I clicked. But what if my ListView has multicolumn and I want to have an event that responds to a column 开发者_JAVA百科in a row?


In your getView(...) of your listadapter simply use setOnClickListener() on what makes up the columns in you list row - ie as the row was a normal layout outside the listview.

0

精彩评论

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