2011-02-01 59 views

回答

0

這裏把問題給了我靈感,嘿嘿......

 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); 
      } 
     } 
    });