给Listview里面Item里的每一个控件怎么设定点击事件
2个回答
2015-12-15
展开全部
listView.setOn<a href="https://www.baidu.com/s?wd=Item&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YLnhDknj03PWuWPj0drHNW0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtkn1mdPWT1P1n3nHf4nHnkPWR" target="_blank" class="baidu-highlight">Item</a>ClickListener(new On<a href="https://www.baidu.com/s?wd=Item&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YLnhDknj03PWuWPj0drHNW0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtkn1mdPWT1P1n3nHf4nHnkPWR" target="_blank" class="baidu-highlight">Item</a>ClickListener() {
@Override
public void on<a href="https://www.baidu.com/s?wd=Item&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YLnhDknj03PWuWPj0drHNW0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtkn1mdPWT1P1n3nHf4nHnkPWR"target="_blank" class="baidu-highlight">Item</a>Click(AdapterView<?> parent, View view,
int position, long id) {
//TODO Auto-generated method stub
}
});
@Override
public void on<a href="https://www.baidu.com/s?wd=Item&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YLnhDknj03PWuWPj0drHNW0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtkn1mdPWT1P1n3nHf4nHnkPWR"target="_blank" class="baidu-highlight">Item</a>Click(AdapterView<?> parent, View view,
int position, long id) {
//TODO Auto-generated method stub
}
});
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询