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

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

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