public void OnItemSelected(Presenter.ViewHolder itemViewHolder, Java.Lang.Object item, RowPresenter.ViewHolder rowViewHolder, Row row) { if (item is Movie) { mBackgroundURI = ((Movie)item).GetBackgroundImageURI(); StartBackgroundTimer(); } }
public void OnItemClicked(Presenter.ViewHolder itemViewHolder, Java.Lang.Object item, RowPresenter.ViewHolder rowViewHolder, Row row) { if (item is Movie) { var movie = (Movie)item; var intent = new Intent(this.Activity, typeof(DetailsActivity)); intent.PutExtra(GetString(Resource.String.movie), Utils.Serialize(movie)); StartActivity(intent); } }
public void OnItemClicked(Presenter.ViewHolder itemViewHolder, Java.Lang.Object item, RowPresenter.ViewHolder rowViewHolder, Java.Lang.Object row) { if (item is Movie) { var movie = (Movie)item; var intent = new Intent(this.Activity, typeof(DetailsActivity)); intent.PutExtra(GetString(Resource.String.movie), Utils.Serialize(movie)); Bundle bundle = ActivityOptionsCompat.MakeSceneTransitionAnimation(Activity, ((ImageCardView)itemViewHolder.View).MainImageView, DetailsActivity.SHARED_ELEMENT_NAME).ToBundle(); StartActivity(intent, bundle); } }
public void OnItemSelected(Presenter.ViewHolder itemViewHolder, Java.Lang.Object item, RowPresenter.ViewHolder rowViewHolder, Row row) { //Do nothing }