예제 #1
0
		/// <summary>
		/// 启动登录活动activity.并传入参数至下一步
		/// </summary>
		/// <param name="activity">Activity.</param>
		public static void StartTargetActivity(Activity activity,FuncActivityType _funcActivityType)
		{
			var type = FuncTypeActivityFactory.CreateFuncActivityFactory ((int)_funcActivityType);
			if (HasLogin) {
				//已经登录
				activity.StartActivity(type);
				activity.OverridePendingTransition(Android.Resource.Animation.SlideInLeft,Android.Resource.Animation.SlideOutRight);
			} else {
				//未登录,跳转到登录界面
				Intent intent = new Intent (activity, typeof(LoginActivity));
				intent.PutExtra (Global.FuncType, (int)_funcActivityType);
				activity.StartActivity (intent);
				activity.OverridePendingTransition (Resource.Animation.bottom_in, 0);
			}
		}
예제 #2
0
        public void Show(Activity activity)
        {
            Validate();

            var i = FillIntent();
            activity.StartActivity(i);
            activity.OverridePendingTransition(AnimationEnterInResource, AnimationEnterOutResource);
        }
예제 #3
0
		public static void Start (Activity activity, bool edit, ActivityOptions options)
		{
			var starter = new Intent (activity, typeof(SignInActivity));
			starter.PutExtra (ExtraEdit, edit);
			if (options == null) {
				activity.StartActivity (starter);
				activity.OverridePendingTransition (Android.Resource.Animation.SlideInLeft, Android.Resource.Animation.SlideOutRight);
			} else {
				activity.StartActivity (starter, options.ToBundle ());
			}
		}
예제 #4
0
 public static void Start(Activity activity)
 {
     Intent intent = new Intent(activity, typeof(MainActivity));
     activity.StartActivity(intent);
     activity.OverridePendingTransition(Resource.Animation.activity_fade_enter, Resource.Animation.activity_fade_exit);
 }