public class CustomActivityTransitionActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
public void onClickNext(View view) {
Intent intent = new Intent(this, SecondActivity.class);
startActivityForResult(intent, 500);
overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_right);
}
答案 0 :(得分:1)
您可以创建popwindow或使用alertDialog并为其中所需的任何自定义布局充气