예제 #1
0
 public void OnItemSelected(Presenter.ViewHolder itemViewHolder, Java.Lang.Object item,
                            RowPresenter.ViewHolder rowViewHolder, Row row)
 {
     if (item is Movie)
     {
         mBackgroundURI = ((Movie)item).GetBackgroundImageURI();
         StartBackgroundTimer();
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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
 }