public TweetView(Tweet tweet, FlyOutNavigationController navigation) : base(null) { this.tweet = tweet; this.navigation = navigation; Initialize(); }
public static float GetCellHeight(RectangleF bounds, Tweet tweet) { bounds.Height = 999; // Keep the same as LayoutSubviews bounds.X = 0; bounds.Width -= 5; using (var nss = new NSString (tweet.Text)) { var dim = nss.StringSize (UIFont.SystemFontOfSize(15), bounds.Size, UILineBreakMode.WordWrap); return Math.Max (dim.Height + 5 + + 14 + 2*4, 20); } }
public void UpdateCell(Tweet newTweet) { tweetView.Update(newTweet); }
public TweetCell(Tweet tweet, string identKey) : base(UITableViewCellStyle.Default, identKey) { tweetView = new TweetCellView(tweet); ContentView.Add(tweetView); }
public TweetElement(Tweet tweet) : base(null) { this.tweet = tweet; }
public void Update(Tweet tweet) { this.tweet = tweet; SetNeedsDisplay(); }
public TweetCellView(Tweet tweet) { Update(tweet); Opaque = true; BackgroundColor = UIColor.White; }