本文整理汇总了C#中Android.App.Activity.OverridePendingTransition方法的典型用法代码示例。如果您正苦于以下问题:C# Activity.OverridePendingTransition方法的具体用法?C# Activity.OverridePendingTransition怎么用?C# Activity.OverridePendingTransition使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Android.App.Activity
的用法示例。
在下文中一共展示了Activity.OverridePendingTransition方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StartTargetActivity
/// <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: Show
public void Show(Activity activity)
{
Validate();
var i = FillIntent();
activity.StartActivity(i);
activity.OverridePendingTransition(AnimationEnterInResource, AnimationEnterOutResource);
}
示例3: Start
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: Start
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);
}