Created
February 23, 2016 09:12
-
-
Save jcmm33/c5a329e241793bef0e6d to your computer and use it in GitHub Desktop.
Enter Transition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var commandContext = new CommandContext | |
{ | |
ActivityOptions = | |
ActivityOptions.MakeSceneTransitionAnimation(context, new Pair(imageView, FoodVenue.ViewNameImageView)) | |
}; | |
currentActivity.StartActivity(intent,commandContext.ActivityOptions.ToBundle()); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FoodVenue : RxActivity<Model> | |
{ | |
public TextView textView { get; set; } | |
public ImageView imageView { get; set; } | |
// constants which | |
public static readonly string ViewNameTextView = "details:header:text"; | |
public static readonly string ViewNameImageView = "details:header:image"; | |
protected override void OnCreate(Bundle savedInstanceState) | |
{ | |
base.OnCreate(savedInstanceState); | |
textView.TransitionName = ViewNameTextView; | |
imageView.TransitionName = ViewNameImageView; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment