Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我不延长课程,我该如何设置OnItemClickListener事件?ListviewListActivity
OnItemClickListener
Listview
ListActivity
有人可以给我一个例子吗?
希望您在使用的活动中有一个列表视图....
listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { // Whatever you want to do. } });
那是你要找的吗?
我有这样的数组值。我想在 HTML 表格标签中显示这些值
<script type="text/javascript"> var orderArray = [ ["1","29-Aug-2012", "Product1", "client1"], ["2","29-Aug-2012", "Product2", "client2"], ["3","29-Aug-2012", "Pr