private RootElement GetRoot()
		{
			var rect = new RectangleF(PadX, 0, View.Bounds.Width - 30 - PadX * 2, 100);
			_detailView = new SeriesDetailView(_series, rect);
			
			_triangleView = new TriangleView (UIColor.FromRGB(247, 247, 247), UIColor.FromRGB (171, 171, 171)) {
				Frame = new RectangleF (43, _detailView.Bounds.Height - 7, 16, 8)
			};
			
			_containerView = new UIView(rect);
			_containerView.Add(_detailView);
			_containerView.Add(_triangleView);
			
			var text = new StyledMultilineElement(_series.Description);
			text.TextColor = UIColor.DarkGray;
			text.LineBreakMode = UILineBreakMode.WordWrap;
			text.Font = UIFont.ItalicSystemFontOfSize(14);
			text.DetailColor = text.TextColor;
						
			var main = new Section(_containerView)
			{
				text
			};
			
			var root = new RootElement("")
			{
				main
		 	};
			
			return root;
		}
        private RootElement GetRoot()
        {
            var rect = new RectangleF(PadX, 0, View.Bounds.Width - 30 - PadX * 2, 100);

            _detailView = new SeriesDetailView(_series, rect);

            _triangleView = new TriangleView(UIColor.FromRGB(247, 247, 247), UIColor.FromRGB(171, 171, 171))
            {
                Frame = new RectangleF(43, _detailView.Bounds.Height - 7, 16, 8)
            };

            _containerView = new UIView(rect);
            _containerView.Add(_detailView);
            _containerView.Add(_triangleView);

            var text = new StyledMultilineElement(_series.Description);

            text.TextColor     = UIColor.DarkGray;
            text.LineBreakMode = UILineBreakMode.WordWrap;
            text.Font          = UIFont.ItalicSystemFontOfSize(14);
            text.DetailColor   = text.TextColor;

            var main = new Section(_containerView)
            {
                text
            };

            var root = new RootElement("")
            {
                main
            };

            return(root);
        }
Example #3
0
        public RootElement GetRoot()
        {
            CreateTweetView("...");

            var width = View.Bounds.Width - 30 - PadX * 2;
            var frame = new RectangleF(PadX, 0, width, 100);

            var headerView = new UIView(frame);

            _view = new BioView(_bio, frame, true);
            headerView.Add(_view);

            // Speech bubble triangle
            var triangleFrame = new RectangleF(Util.IsPad() ? 63 : 43, _view.Bounds.Height - 7, 16, 8);
            var triangle      = new TriangleView(UIColor.FromRGB(247, 247, 247), UIColor.FromRGB(171, 171, 171))
            {
                Frame = triangleFrame
            };

            headerView.Add(triangle);

            _view.UrlTapped += delegate
            {
                WebViewController.OpenUrl(this, _bio.Url);
            };

            _main = new Section(headerView)
            {
                _tweetBox
            };

            var text = new StyledMultilineElement(AppManifest.Current.Biography);

            text.TextColor      = UIColor.DarkGray;
            text.LineBreakMode  = UILineBreakMode.WordWrap;
            text.Font           = UIFont.ItalicSystemFontOfSize(15);
            text.DetailColor    = text.TextColor;
            text.SelectionStyle = UITableViewCellSelectionStyle.None;

            var secondary = new Section("About " + AppManifest.Current.FirstName)
            {
                text
            };

            var root = new RootElement("Bio")
            {
                _main,
                secondary
            };

            // Required for resizing bubble for new tweets
            root.UnevenRows = true;

            return(root);
        }
Example #4
0
		public RootElement GetRoot()
		{
			CreateTweetView("...");
			
			var width = View.Bounds.Width - 30 - PadX * 2;
			var frame = new RectangleF(PadX, 0, width, 100);
			
			var headerView = new UIView(frame);			
			_view = new BioView(_bio, frame, true);
			headerView.Add(_view);
			
			// Speech bubble triangle
			var triangleFrame = new RectangleF(Util.IsPad() ? 63 : 43, _view.Bounds.Height - 7, 16, 8);
			var triangle = new TriangleView (UIColor.FromRGB(247, 247, 247), UIColor.FromRGB(171, 171, 171)) { Frame = triangleFrame };
			headerView.Add(triangle);
						
			_view.UrlTapped += delegate
			{
				WebViewController.OpenUrl(this, _bio.Url);
			};
					
			_main = new Section(headerView)
			{
				_tweetBox
			};
			
			var text = new StyledMultilineElement(AppManifest.Current.Biography);
			text.TextColor = UIColor.DarkGray;
			text.LineBreakMode = UILineBreakMode.WordWrap;
			text.Font = UIFont.ItalicSystemFontOfSize(15);
			text.DetailColor = text.TextColor;	
			text.SelectionStyle = UITableViewCellSelectionStyle.None;
						
			var secondary = new Section("About " + AppManifest.Current.FirstName)
			{
				text
			};
			
			var root = new RootElement("Bio")
			{
				_main,
				secondary
		 	};			
			
			// Required for resizing bubble for new tweets
			root.UnevenRows = true;
			
			return root;
		}