我使用ListActivity
實現了android listview
。在這裏我遇到這樣的問題,當我點擊列表項時,當Flash顏色也不是橙色時,不執行任何操作。所以你對我的問題有什麼想法。點擊不能在Listitem列表中查看android
@Override
protected void onListItemClick(ListView l, View v, int position, long id)
{
super.onListItemClick(l, v, position, id);
Toast.makeText(getApplicationContext(), "msg msg", Toast.LENGTH_SHORT)
.show();
}
我把這段代碼也放到Main ListActivity中。
你可以發佈你的代碼,plz – Nermeen 2012-07-23 09:43:26
和你的列表適配器代碼 – rajpara 2012-07-23 09:44:41
你的列表中是否有任何按鈕或ImageButton? – 2012-07-23 09:46:31