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.
单击列表项时,我在 Toast 中显示位置。但是位置错了。为什么会产生这种类型的问题。请帮我!
listView.setOnItemClickListener(new OnItemClickListener() {
@Override public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) { // TODO Auto-generated method stub Log.i("You clicked On ", arg2+"" ); });