开发者

Android: ListView

开发者 https://www.devze.com 2023-02-19 02:01 出处:网络
Need some help ! I have a ListActivity...on itch row i have 4 textVIew... @Override public void onListItemClick(ListView parent, View v, int position, long id) {

Need some help ! I have a ListActivity...on itch row i have 4 textVIew...

@Override
public void onListItemClick(ListView parent, View v, int position, long id) {
    Intent intent = new Intent(this, Some.class);
    intent.putExtra(KEY, (int) id);
    startActivityForResult(intent, 0);
}

On list item click i can send ID easy. But also i have on click method on every tex开发者_运维百科tView... How can i get row id when i clik on TextView of this row ?


see this thread

0

精彩评论

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

关注公众号