0
繼example of GridView如何在onItemClick事件中運行圖像的新查詢? 我可以在這種情況下投射我的BaseAdapter?GridView x BaseAdapter並重新加載onItemClick
繼example of GridView如何在onItemClick事件中運行圖像的新查詢? 我可以在這種情況下投射我的BaseAdapter?GridView x BaseAdapter並重新加載onItemClick
這裏把問題給了我靈感,嘿嘿......
gridview.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
try
{
((myCustomAdapter)parent.getAdapter()).myMethod("new_param");
((GridView)v.getParent()).invalidateViews();
}
catch (Exception e) {
System.out.println("onItemClick Excpetion = " + e);
}
}
});