Code example for Activity

Methods: overridePendingTransition

0
 
	@TargetApi(Build.VERSION_CODES.ECLAIR)
	private static class OverridePendingTransitionAccessor { 
		private static void overridePendingTransition(final Activity activity, final int enter_anim, final int exit_anim) {
			if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ECLAIR) return;
			activity.overridePendingTransition(enter_anim, exit_anim);
		} 
	} 
 
	@TargetApi(Build.VERSION_CODES.HONEYCOMB)
	private static class SetFinishOnTouchOutsideAccessor { 
		public static void setFinishOnTouchOutside(final Activity activity, final boolean finish) {
			if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) return;
			activity.setFinishOnTouchOutside(finish);
		} 
	} 
 
	@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH)
	private static class SetHomeButtonEnabledAccessor { 
 
		private static void setHomeButtonEnabled(final Activity activity, final boolean enabled) {