コード例 #1
0
 /// <summary>
 ///     Creates an ExhibitPageFragment for the specified Page.
 /// </summary>
 /// <param name="page">Page to create an ExhibitPageFragment for.</param>
 /// <param name="exhibitName">Name of the exhibit.</param>
 /// <returns>the created ExhibitPageFragment.</returns>
 public static ExhibitPageFragment GetFragmentForExhibitPage(Page page, string exhibitName)
 {
     // TODO: update this when new pages are available
     if (page.IsAppetizerPage())
     {
         var fragment = new AppetizerExhibitPageFragment();
         fragment.SetPage(page);
         if (!string.IsNullOrEmpty(exhibitName))
         {
             fragment.AppetizerTitle = exhibitName;
         }
         return(fragment);
     }
     if (page.IsTextPage())
     {
         var fragment = new TextExhibitPageFragment();
         fragment.SetPage(page);
         return(fragment);
     }
     if (page.IsTimeSliderPage())
     {
         var fragment = new TimeSliderExhibitPageFragment();
         fragment.SetPage(page);
         return(fragment);
     }
     if (page.IsImagePage())
     {
         var fragment = new ImagePageExhibitFragment();
         fragment.SetPage(page);
         return(fragment);
     }
     Log.Info("PageFragmentFactory", "Got unknown type of page: " + page
              + " for exhibit " + exhibitName);
     return(new DummyExhibitPageFragment());
 }
コード例 #2
0
 public SeekbarLayoutListener(TimeSliderExhibitPageFragment parent, SeekBar seekbar, Activity activity)
 {
     this.parent = parent;
     this.seekbar = seekbar;
     this.activity = activity;
 }
コード例 #3
0
 public CustomOnSeekBarChangeListener(TimeSliderExhibitPageFragment parent)
 {
     this.parent = parent;
 }