예제 #1
0
 private int Compare(FranchiseListItem left, SeriesListItem right) =>
 this.CompareEntries(left, right, right.Series.Entry);
예제 #2
0
 private int Compare(SeriesListItem left, FranchiseListItem right) =>
 this.Compare(right, left) * -1;
예제 #3
0
 private int Compare(SeriesListItem left, SeriesListItem right) =>
 left.Series.Id == right.Series.Id
         ? 0
         : this.CompareEntries(left, right, left.Series.Entry, right.Series.Entry);
예제 #4
0
 private int Compare(SeriesListItem left, MovieListItem right) =>
 this.CompareEntries(left, right, left.Series.Entry, right.Movie.Entry);
                ListItemView GetStandardView( int position, View convertView, ViewGroup parent )
                {
                    SeriesListItem seriesItem = convertView as SeriesListItem;
                    if ( seriesItem == null )
                    {
                        seriesItem = new SeriesListItem( Rock.Mobile.PlatformSpecific.Android.Core.Context );
                        seriesItem.HasImage = false;
                    }
                    else
                    {
                        seriesItem.FreeImageResources( );
                    }

                    // make sure we don't somehow attempt to render outside our list bounds
                    // this could happen if the list gets unloaded during the last render
                    if ( position < ParentFragment.SeriesEntries.Count )
                    {
                        if ( ParentFragment.SeriesEntries[ position ].Thumbnail != null )
                        {
                            if ( seriesItem.HasImage == false )
                            {
                                seriesItem.HasImage = true;
                                Rock.Mobile.PlatformSpecific.Android.UI.Util.FadeView( seriesItem.Thumbnail, true, null );
                            }
                            
                            seriesItem.Thumbnail.SetImageBitmap( ParentFragment.SeriesEntries[ position ].Thumbnail );
                            seriesItem.Thumbnail.SetScaleType( ImageView.ScaleType.CenterCrop );
                        }
                        else if ( ParentFragment.ImageThumbPlaceholder != null )
                        {
                            seriesItem.Thumbnail.SetImageBitmap( ParentFragment.ImageThumbPlaceholder );
                        }
                        else
                        {
                            seriesItem.Thumbnail.SetImageBitmap( null );
                        }

                        seriesItem.Title.Text = ParentFragment.SeriesEntries[ position ].Series.Name;
                        if ( ParentFragment.SeriesEntries[ position ].Series.Private == true )
                        {
                            seriesItem.Title.Text += " (Private)";    
                        }

                        seriesItem.DateRange.Text = ParentFragment.SeriesEntries[ position ].Series.DateRanges;
                    }

                    return seriesItem;
                }
예제 #6
0
 private int Compare(SeriesListItem left, MovieSeriesListItem right)
 => this.Compare(right, left) * -1;