2013-03-22 71 views
8

如何在GridView適配器上插入overridePendingTransition?這樣不工作,沒有過渡st​​artactivity工作完美gridview適配器上的overridePendingTransition

bt.setOnLongClickListener(new OnLongClickListener(){ 
       @Override 
       public boolean onLongClick(View v) { 
         final String selectedPad = Drum.pads[position]; 
         Intent modPad = new Intent(v.getContext(), ModifyPad.class); 
         modPad.putExtra("pad", selectedPad); 
         context.startActivity(modPad); 
         overridePendingTransition(R.anim.exit_slid_in, R.anim.exit_slid_out); 
        return false; 
       } 
      }); 

我讀過這篇文章: android start Activity in adapter (transition animiation direction problem),以及相關評論,但我不知道如何在Adapter通過Activity。任何幫助?

回答

相關問題