回答

0

grid.setOnChildClickListener();

可能會解決您的問題!

2
YourGrid.setOnItemClickListener(new OnItemClickListener() { 
       public void onItemClick(AdapterView<?> parent, View v, 
         int position, long id) { 
        Intent intent = new Intent(this, 
          MyNewActivity.class); 
        startActivity(intent); 
       } 
      }); 

確保在您的網格佈局有像按鈕,否則會改爲觸發此

沒有點擊的內容