public SideBySideAdapter(SideBySideObject inSideBySideObject, CustomActivity inActivity, bool searchLanding)
 {
     this.mSideBySideObject = inSideBySideObject;
     this.callingActivity = inActivity;
     this.searchLanding = searchLanding;
 }
 // Locate and cache view references
 public SideBySideViewHolder(View itemView, CustomActivity callingActivity, bool searchLanding)
     : base(itemView)
 {
     LeftImage = itemView.FindViewById<ImageView> (Resource.Id.imageViewLeft);
     LeftText = itemView.FindViewById<TextView> (Resource.Id.textViewLeft);
     this.callingActivity = callingActivity;
     RightImage = itemView.FindViewById<ImageView> (Resource.Id.imageViewRight);
     RightText = itemView.FindViewById<TextView> (Resource.Id.textViewRight);
     if (!searchLanding) {
         this.attributeClicks ();
     }
     else {
         this.searchClicks ();
     }
 }
 // Locate and cache view references
 public SideBySideViewHolder(View itemView, CustomActivity callingActivity, bool searchLanding)
     : base(itemView)
 {
     LeftImage = itemView.FindViewById<ImageView> (Resource.Id.imageViewLeft);
     LeftText = itemView.FindViewById<TextView> (Resource.Id.textViewLeft);
     this.callingActivity = callingActivity;
     RightImage = itemView.FindViewById<ImageView> (Resource.Id.imageViewRight);
     RightText = itemView.FindViewById<TextView> (Resource.Id.textViewRight);
     if (!searchLanding) {
         Type t =  Type.GetType("SpeedyChef.SubtypeBrowseActivity");
         responseToClick (t);
     }
     else {
         Type t =  Type.GetType("SpeedyChef.SearchActivity");
         responseToClick (t);
     }
 }
Esempio n. 4
0
 public RecipeAdapter(RecipeObject inRObject, CustomActivity inActivity)
 {
     this.mRObject = inRObject;
     this.callingActivity = inActivity;
 }