8
如何在GridView
適配器上插入overridePendingTransition
?這樣不工作,沒有過渡startactivity工作完美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
。任何幫助?