Ejemplo n.º 1
0
        public TweetView(Tweet tweet, FlyOutNavigationController navigation)
            : base(null)
        {
            this.tweet = tweet;
            this.navigation = navigation;

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

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