public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.
            if (!string.IsNullOrEmpty(MovieItem.Poster))
            {
                var imageView = new UIImageView(LoadImage.FromUrl(MovieItem.Poster));
                this.posterImage.Add(imageView);
            }


            this.movieTitle.Text    = MovieItem.Title;
            this.movieYear.Text     = MovieItem.Year;
            this.movieActors.Text   = "Actors         : " + MovieItem.Actors;
            this.releaseDate.Text   = "Released Date : " + MovieItem.Released;
            this.movieLanguage.Text = "Langauge    : " + MovieItem.Language;

            this.moviePlot.Text     = " Movie Plot  : " + MovieItem.Plot;
            this.movieDirector.Text = "Direcotr : " + MovieItem.Director;
        }
예제 #2
0
            public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
            {
                UITableViewCell cell = tableView.DequeueReusableCell(cellId);

                if (cell == null)
                {
                    cell = new UITableViewCell(
                        UITableViewCellStyle.Default,

                        cellId
                        );

                    cell.LayoutMargins = UIEdgeInsets.Zero; // remove table cell separator margin
                }
                if (!string.IsNullOrEmpty(controller.searchResults[indexPath.Row].Poster))
                {
                    var backgroundView = new UIImageView(LoadImage.FromUrl(controller.searchResults[indexPath.Row].Poster));
                    //backgroundView.ClipsToBounds = true;
                    backgroundView.ContentMode = UIViewContentMode.ScaleToFill;
                    cell.BackgroundView        = backgroundView;
                }

                cell.TextLabel.Text = controller.searchResults[indexPath.Row].Title + "  " + controller.searchResults[indexPath.Row].Year;
                //cell.DetailTextLabel.Text = controller.searchResults[indexPath.Row].Year;


                cell.Layer.CornerRadius  = 5.0f;
                cell.Layer.BorderColor   = UIColor.Clear.CGColor;
                cell.Layer.BorderWidth   = 5.0f;
                cell.Layer.ShadowOpacity = 0.5f;
                cell.Layer.ShadowColor   = UIColor.LightGray.CGColor;
                cell.Layer.ShadowRadius  = 5.0f;
                //view.Layer.ShadowOffset=Estimate
                cell.Layer.MasksToBounds = true;

                return(cell);
            }