示例#1
0
        private void initSocialButtons()
        {
            ConectarField               = new UILabel(new CGRect(100 + DeviceWidth, 244, 120, 20));
            ConectarField.Text          = "Conectar con";
            ConectarField.TextAlignment = UITextAlignment.Center;
            ConectarField.TextColor     = UIColor.Yellow;
            ConectarField.Font          = UIFont.FromName("HelveticaNeue", 18);
            View.Add(ConectarField);

            //social views
            FacebookView = getRoundImageView(30 + DeviceWidth, 285, "MLResources/Icons/icon_face.png", "Facebook");
            View.Add(FacebookView);
            TwitterView = getRoundImageView(30 + DeviceWidth, 345, "MLResources/Icons/icon_twitter.png", "Twitter");
            View.Add(TwitterView);
            LinkedView = getRoundImageView(30 + DeviceWidth, 402, "MLResources/Icons/icon_in.png", "LinkedIn");
            View.Add(LinkedView);

            FacebookButton = new UIButton(new CGRect(0, 0, 260, 55));
            FacebookView.Add(FacebookButton);
            FacebookButton.TouchUpInside += delegate {
            };

            TwitterButton = new UIButton(new CGRect(0, 0, 260, 55));
            TwitterView.Add(FacebookButton);
            TwitterButton.TouchUpInside += delegate {
            };

            LinkedButton = new UIButton(new CGRect(0, 0, 260, 55));
            LinkedView.Add(FacebookButton);
            LinkedButton.TouchUpInside += delegate {
            };

            //botton buttons
            DownView = new UIView(new CGRect(0, 488 + 100, 320, 80));
            View.Add(DownView);

            var leftline = new UIView(new CGRect(22, 10, 120, 1))
            {
                BackgroundColor = UIColor.Red
            };

            DownView.Add(leftline);
            var rightline = new UIView(new CGRect(178, 10, 120, 1))
            {
                BackgroundColor = UIColor.Red
            };

            DownView.Add(rightline);

            LoginButton = new UIButton(new CGRect(40, 35, 100, 30));
            LoginButton.SetTitle("Login", UIControlState.Normal);
            LoginButton.SetTitleColor(UIColor.Yellow, UIControlState.Normal);
            DownView.Add(LoginButton);
            LoginButton.TouchUpInside += delegate {
                loginanimate(-1.0f * DeviceWidth, true);
                socialanimate(-1.0f * DeviceWidth, false, true);
                social_state = -1;
                login_state  = 0;
            };


            SignupButton = new UIButton(new CGRect(180, 35, 100, 30));
            SignupButton.SetTitle("Sign Up", UIControlState.Normal);
            SignupButton.SetTitleColor(UIColor.Yellow, UIControlState.Normal);
            DownView.Add(SignupButton);
            SignupButton.TouchUpInside += delegate {
                registeranimate(-1.0f * DeviceWidth, true);
                socialanimate(-1.0f * DeviceWidth, false, false);
                social_state = -1;
                sign_state   = 0;
            };
        }
 public TwitterPresenter(
     TwitterView view, ITwitterRepo repository)
 {
     View       = view;
     Repository = repository;
 }
 public TableSource(UITableView tableView, TwitterView parent)
     : base(tableView, TweetCell3.Identifier, TweetCell3.Identifier)
 {
     _parent = parent;
     tableView.RegisterNibForCellReuse(UINib.FromName(TweetCell3.Identifier, NSBundle.MainBundle), TweetCell3.Identifier);
 }
		public TwitterPresenter (
			TwitterView view, ITwitterRepo repository)
		{
			View = view;
			Repository = repository;
		}