Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Change activity transition when inside a TabHost
- private Activity owner;
- public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
- Intent programActivity = new Intent().setClass(view.getContext(), ProgramActivity.class);
- Program program = (Program) parent.getItemAtPosition(position);
- programActivity.putExtra("programID", program.getId());
- owner.startActivity(programActivity);
- owner.overridePendingTransition(R.anim.fade_in, R.anim.fade_out);
- }
Add Comment
Please, Sign In to add comment