Example #1
0
        public TweetView(Tweet tweet, FlyOutNavigationController navigation)
            : base(null)
        {
            this.tweet = tweet;
            this.navigation = navigation;

            Initialize();
        }
Example #2
0
        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);
            }
        }
Example #3
0
 public void UpdateCell(Tweet newTweet)
 {
     tweetView.Update(newTweet);
 }
Example #4
0
 public TweetCell(Tweet tweet, string identKey)
     : base(UITableViewCellStyle.Default, identKey)
 {
     tweetView = new TweetCellView(tweet);
     ContentView.Add(tweetView);
 }
Example #5
0
 public TweetElement(Tweet tweet)
     : base(null)
 {
     this.tweet = tweet;
 }
Example #6
0
        public void Update(Tweet tweet)
        {
            this.tweet = tweet;

            SetNeedsDisplay();
        }
Example #7
0
 public TweetCellView(Tweet tweet)
 {
     Update(tweet);
     Opaque = true;
     BackgroundColor = UIColor.White;
 }