public TeamMemberListScreenCell() { BackgroundColor = UIColor.Clear; SelectionStyle = UITableViewCellSelectionStyle.None; MemberNameLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, BackgroundColor=UIColor.Clear, }; Add(MemberNameLabel); MemberSellsLabel = new UILabel () { TextColor = UIColor.Gray, TextAlignment=UITextAlignment.Left, BackgroundColor=UIColor.Clear, }; Add(MemberSellsLabel); UninviteBtn=new CustomBtn(); UninviteBtn.SetTitle (TeamMemberListScreenData.UninviteBtnTitle, UIControlState.Normal); UninviteBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(UninviteBtn); Rotate (); }
public TeamListScreenCell() { BackgroundColor = UIColor.Clear; SelectionStyle = UITableViewCellSelectionStyle.None; TeamNameLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, BackgroundColor=UIColor.Clear, }; Add(TeamNameLabel); LeaderNameLabel = new UILabel () { TextColor = UIColor.Gray, TextAlignment=UITextAlignment.Left, BackgroundColor=UIColor.Clear, }; Add(LeaderNameLabel); JoinBtn=new CustomBtn(); JoinBtn.SetTitle (TeamListScreenData.JoinBtnTitle, UIControlState.Normal); JoinBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(JoinBtn); Rotate (); }
public SocialShareView(Tap5050Event raffle) { this.raffle = raffle; BackgroundColor = UIColor.Clear; DismissBtn =UIButton.FromType(UIButtonType.RoundedRect); DismissBtn.BackgroundColor = UIColor.Clear; Add(DismissBtn); SubSocialView = new UIView () { BackgroundColor=UIColor.FromRGB(247,247,247), }; Add (SubSocialView); facebookBtn =UIButton.FromType(UIButtonType.RoundedRect); facebookBtn.SetBackgroundImage (UIImage.FromFile (RaffleDetailData.FacebookImageFileName), UIControlState.Normal); SubSocialView.Add(facebookBtn); twitterBtn =UIButton.FromType(UIButtonType.RoundedRect); twitterBtn.SetBackgroundImage (UIImage.FromFile (RaffleDetailData.TwitterImageFileName), UIControlState.Normal); SubSocialView.Add(twitterBtn); SMSBtn =UIButton.FromType(UIButtonType.RoundedRect); SMSBtn.SetBackgroundImage (UIImage.FromFile (RaffleDetailData.SMSImageFileName), UIControlState.Normal); SubSocialView.Add(SMSBtn); emailBtn =UIButton.FromType(UIButtonType.RoundedRect); emailBtn.SetBackgroundImage (UIImage.FromFile (RaffleDetailData.EmailImageFileName), UIControlState.Normal); SubSocialView.Add(emailBtn); BuylaterTextField = new UITextField( ) { Placeholder=RaffleDetailData.ContactTextFieldPlaceholder, Text=RaffleDetailData.ContactTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.EmailAddress, AutocapitalizationType = UITextAutocapitalizationType.None, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false }; BuylaterTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; SubSocialView.Add(BuylaterTextField); BuylaterBtn =new CustomBtn(); BuylaterBtn.SetTitle (RaffleDetailData.BuyLaterBtnTitle, UIControlState.Normal); BuylaterBtn.SetTitleColor (UIColor.White, UIControlState.Normal); SubSocialView.Add(BuylaterBtn); Rotate (); }
public PotentialTeamMemberCell() { BackgroundColor = UIColor.Clear; SelectionStyle = UITableViewCellSelectionStyle.None; MemberNameLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, BackgroundColor=UIColor.Clear, }; Add(MemberNameLabel); InviteBtn=new CustomBtn(); InviteBtn.SetTitle (PotentialTeamMemberData.InviteBtnTitle, UIControlState.Normal); InviteBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(InviteBtn); Rotate (); }
public LoginScreenView() { BackgroundColor = UIColor.FromRGB (235, 235, 235); //set up GUIs logoView=new UIImageView() { ContentMode = UIViewContentMode.ScaleAspectFit, Image = UIImage.FromFile (LoginScreenData.LogoImageFileName) }; Add (logoView); userNameTextField = new UITextField( ) { Placeholder = LoginScreenData.UserNameTextFieldPlaceholder, Text = LoginScreenData.UserNameTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.EmailAddress, AutocapitalizationType = UITextAutocapitalizationType.None, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; userNameTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(userNameTextField); passwordTextField = new UITextField( ) { Placeholder = LoginScreenData.PasswordTextFieldPlaceholder, Text = LoginScreenData.PasswordTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=true, }; passwordTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(passwordTextField); fingerPrintView = new UIImageView() { ContentMode = UIViewContentMode.ScaleAspectFit, Image = UIImage.FromFile(LoginScreenData.FingerPrintFileName) }; //Add(fingerPrintView); loginBtn =new CustomBtn(); loginBtn.SetTitle (LoginScreenData.LoginBtnTitle, UIControlState.Normal); loginBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(loginBtn); dontHaveAccountLabel = new UILabel () { Text = LoginScreenData.DontHaveAccountLabelText, TextAlignment=UITextAlignment.Center, TextColor = UIColor.Black, }; Add(dontHaveAccountLabel); signUpBtn = UIButton.FromType (UIButtonType.RoundedRect); signUpBtn.SetTitle (LoginScreenData.SignUpBtnTitle, UIControlState.Normal); Add(signUpBtn); forgetPassWordBtn = UIButton.FromType (UIButtonType.RoundedRect); forgetPassWordBtn.SetTitle (LoginScreenData.ForgetPassWordBtnTitle, UIControlState.Normal); Add(forgetPassWordBtn); versionLabel = new UILabel () { Text = LoginScreenData.VersionLabelText, TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, }; Add(versionLabel); termsAndPrivacyLabel1= new UILabel () { Text = LoginScreenData.termsAndPrivacyText1, TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, }; Add(termsAndPrivacyLabel1); termsAndPrivacyLabel2= new UILabel () { Text = LoginScreenData.termsAndPrivacyText2, TextColor = UIColor.FromRGB(0,122,255), TextAlignment=UITextAlignment.Right, UserInteractionEnabled=true, }; Add(termsAndPrivacyLabel2); termsAndPrivacyLabel3= new UILabel () { Text = LoginScreenData.termsAndPrivacyText3, TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, }; Add(termsAndPrivacyLabel3); termsAndPrivacyLabel4= new UILabel () { Text = LoginScreenData.termsAndPrivacyText4, TextColor = UIColor.FromRGB(0,122,255), TextAlignment=UITextAlignment.Left, UserInteractionEnabled=true, }; Add(termsAndPrivacyLabel4); Rotate (); }
public RegisterScreenView(List<Country> listcountry,List<StateAndProvince> liststateandprovince) { //initial objects this.subliststateandprovince=new List<StateAndProvince> (); this.listRaffleResultContactMethod=new List<string> {"NO CONTACT","SMS","EMAIL"}; this.listCharityMarketingMessageContactMethod = new List<string> { "NO CONTACT", "SMS", "EMAIL" }; //********************** BackgroundColor = UIColor.FromRGB (235, 235, 235); //basic info GUI************************************************** basicInfoLabel= new UILabel () { TextAlignment=UITextAlignment.Left, TextColor = UIColor.Black, Text= RegisterScreenData.BasicInfoLabelText, }; Add(basicInfoLabel); firstNameTextField = new UITextField( ) { Placeholder = RegisterScreenData.FirstNameTextFieldPlaceholder, Text = RegisterScreenData.FirstNameTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; firstNameTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(firstNameTextField); lastNameTextField = new UITextField( ) { Placeholder = RegisterScreenData.LastNameTextFieldPlaceholder, Text = RegisterScreenData.LastNameTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; lastNameTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(lastNameTextField); birthDateTextField = new UITextField( ) { Placeholder = RegisterScreenData.BirthDateTextFieldPlaceholder, Text = RegisterScreenData.BirthDateTextFieldText, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; birthDatePickerView = new DatePickerView (); birthDatePickerView.doneBtnClick+=(s,e)=> { birthDateTextField.Text=(((DateTime)(((DatePickerView)s).datePicker.Date)).ToString("yyyy-MMM-dd")); birthDateTextField.ResignFirstResponder(); }; birthDatePickerView.cancelBtnClick+=(s,e)=> { birthDateTextField.ResignFirstResponder(); }; birthDateTextField.EditingDidBegin += delegate { birthDateTextField.InputView = birthDatePickerView; }; Add(birthDateTextField); //contactInfo GUI************************************************************************* contactInfoLabel= new UILabel () { TextAlignment=UITextAlignment.Left, TextColor = UIColor.Black, Text=RegisterScreenData.ContactInfoLabelText, }; Add(contactInfoLabel); mobilePhoneTextField = new UITextField( ) { Placeholder=RegisterScreenData.MobilePhoneTextFieldPlaceholder, Text=RegisterScreenData.MobilePhoneTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.PhonePad, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; mobilePhoneTextFieldToolbar= new CustomToolBar(); mobilePhoneTextFieldToolbar.toolBarCancelBtn.Clicked += delegate { mobilePhoneTextField.ResignFirstResponder(); }; mobilePhoneTextFieldToolbar.toolBarDoneBtn.Clicked += delegate { mobilePhoneTextField.ResignFirstResponder(); }; mobilePhoneTextField.InputAccessoryView = mobilePhoneTextFieldToolbar; Add(mobilePhoneTextField); emailTextField = new UITextField( ) { Placeholder=RegisterScreenData.EmailTextFieldPlaceholder, Text=RegisterScreenData.EmailConfirmTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.EmailAddress, AutocapitalizationType = UITextAutocapitalizationType.None, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; emailTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(emailTextField); emailConfirmTextField = new UITextField( ) { Placeholder=RegisterScreenData.EmailConfirmTextFieldPlaceholder, Text=RegisterScreenData.EmailConfirmTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.EmailAddress, AutocapitalizationType = UITextAutocapitalizationType.None, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; emailConfirmTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(emailConfirmTextField); //addressInfo GUI****************************************************************************** addressInfoLabel= new UILabel () { TextAlignment=UITextAlignment.Left, TextColor = UIColor.Black, Text=RegisterScreenData.AddressInfoLabelText, }; Add(addressInfoLabel); address1TextField = new UITextField( ) { Placeholder=RegisterScreenData.Address1TextFieldPlaceholder, Text=RegisterScreenData.Address1TextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; address1TextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(address1TextField); address2TextField = new UITextField( ) { Placeholder=RegisterScreenData.Address2TextFieldPlaceholder, Text=RegisterScreenData.Address2TextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; address2TextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(address2TextField); countryTextField = new UITextField( ) { Placeholder=RegisterScreenData.CountryTextFieldPlaceholder, Text=RegisterScreenData.CountryTextFieldText, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; countryPickerView = new CustomPickerView<Country> (new CountryPickerModel<Country>(listcountry.ToArray())); countryPickerView.doneBtnClick+=(s,e)=> { if(((CustomPickerView<Country>)s).pickerView!=null) { Country selectedCountry=((CustomPickerModel<Country>)((CustomPickerView<Country>)s).pickerView.Model).selectedObject; provanceTextField.Text=""; subliststateandprovince.Clear(); foreach(var x in liststateandprovince) { if(x.country_code==selectedCountry.country_code) { subliststateandprovince.Add(x); } } provincePickerView.newModel(new ProvincePickerModel<StateAndProvince>(subliststateandprovince.ToArray())); countryTextField.Text=(selectedCountry.country_name); } countryTextField.ResignFirstResponder(); }; countryPickerView.cancelBtnClick+=(s,e)=> { countryTextField.ResignFirstResponder(); }; countryTextField.EditingDidBegin += delegate { countryTextField.InputView = countryPickerView; }; Add(countryTextField); provanceTextField = new UITextField( ) { Placeholder=RegisterScreenData.ProvanceTextFieldPlaceholder, Text=RegisterScreenData.ProvanceTextFieldText, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; provincePickerView = new CustomPickerView<StateAndProvince> (new ProvincePickerModel<StateAndProvince>(subliststateandprovince.ToArray())); provincePickerView.doneBtnClick+=(s,e)=> { if(((CustomPickerView<StateAndProvince>)s).pickerView!=null) { StateAndProvince selectedStateAndProvince=((CustomPickerModel<StateAndProvince>)((CustomPickerView<StateAndProvince>)s).pickerView.Model).selectedObject; provanceTextField.Text=(selectedStateAndProvince.state_province_name); } provanceTextField.ResignFirstResponder(); }; provincePickerView.cancelBtnClick+=(s,e)=> { provanceTextField.ResignFirstResponder(); }; provanceTextField.EditingDidBegin += delegate { provanceTextField.InputView = provincePickerView; }; Add(provanceTextField); cityTextField = new UITextField( ) { Placeholder=RegisterScreenData.CityTextFieldPlaceholder, Text=RegisterScreenData.CityTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; cityTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(cityTextField); zipcodeTextField = new UITextField( ) { Placeholder=RegisterScreenData.ZipcodeTextFieldPlaceholder, Text=RegisterScreenData.ZipcodeTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; zipcodeTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(zipcodeTextField); //raffleResults GUI************************************************************************* raffleResultsLabel= new UILabel () { TextAlignment=UITextAlignment.Left, TextColor = UIColor.Black, Text=RegisterScreenData.RaffleResultsLabelText, }; Add(raffleResultsLabel); raffleResultTextField = new UITextField( ) { Placeholder=RegisterScreenData.RaffleResultTextFieldPlaceholder, Text=RegisterScreenData.RaffleResultTextFieldText, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; raffleResultsPickerView = new CustomPickerView<string> (new ContactPickerViewModel<string>(listRaffleResultContactMethod.ToArray())); raffleResultsPickerView.doneBtnClick+=(s,e)=> { if(((CustomPickerView<string>)s).pickerView!=null) { string selectedMethod=((CustomPickerModel<string>)((CustomPickerView<string>)s).pickerView.Model).selectedObject; raffleResultTextField.Text=(selectedMethod); } raffleResultTextField.ResignFirstResponder(); }; raffleResultsPickerView.cancelBtnClick+=(s,e)=> { raffleResultTextField.ResignFirstResponder(); }; raffleResultTextField.EditingDidBegin += delegate { raffleResultTextField.InputView = raffleResultsPickerView; }; Add(raffleResultTextField); //CharityMarketingMessages GUI*************************************************************** CharityMarketingMessagesLabel= new UILabel () { TextAlignment=UITextAlignment.Left, TextColor = UIColor.Black, Text=RegisterScreenData.CharityMarketingMessagesLabelText, }; Add(CharityMarketingMessagesLabel); CharityMarketingMessagesTextField = new UITextField( ) { Placeholder=RegisterScreenData.CharityMarketingMessagesTextFieldPlaceholder, Text=RegisterScreenData.CharityMarketingMessagesTextFieldText, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.White, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false, }; CharityMarketingMessagesPickerView = new CustomPickerView<string> (new ContactPickerViewModel<string>(listCharityMarketingMessageContactMethod.ToArray())); CharityMarketingMessagesPickerView.doneBtnClick+=(s,e)=> { if(((CustomPickerView<string>)s).pickerView!=null) { string selectedMethod=((CustomPickerModel<string>)((CustomPickerView<string>)s).pickerView.Model).selectedObject; CharityMarketingMessagesTextField.Text=(selectedMethod); } CharityMarketingMessagesTextField.ResignFirstResponder(); }; CharityMarketingMessagesPickerView.cancelBtnClick+=(s,e)=> { CharityMarketingMessagesTextField.ResignFirstResponder(); }; CharityMarketingMessagesTextField.EditingDidBegin += delegate { CharityMarketingMessagesTextField.InputView = CharityMarketingMessagesPickerView; }; Add(CharityMarketingMessagesTextField); //Create account Btn************************************************************************* createAccountBtn =new CustomBtn(); createAccountBtn.SetTitle (RegisterScreenData.CreateAccountBtnTitle, UIControlState.Normal); createAccountBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(createAccountBtn); //move the view when the keyboard is up NSNotificationCenter.DefaultCenter.AddObserver (UIKeyboard.DidShowNotification,KeyBoardUpNotification); Rotate (); }
public AccountScreenView() { BackgroundColor=UIColor.FromRGB (235, 235, 235); playerInfoView = new UIView () { BackgroundColor = UIColor.White, }; Add(playerInfoView); playerInfoLabel= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=AccountScreenData.PlayerInfoLabelText, }; Add(playerInfoLabel); NameLabel= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Right, Text=AccountScreenData.NameLabelText, }; Add(NameLabel); name= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, Text=AccountScreenData.NameText, }; Add(name); addressLabel= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Right, Text=AccountScreenData.AddressLabelLabelText, }; Add(addressLabel); address=new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false, Text=AccountScreenData.AddressText, }; Add(address); mobileLabel= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Right, Text=AccountScreenData.MobileLabelText, }; Add(mobileLabel); mobile= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, Text=AccountScreenData.MobileText, }; Add(mobile); emailLabel= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Right, Text=AccountScreenData.EmailLabelText, }; Add(emailLabel); email= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, Text=AccountScreenData.EamilText, }; Add(email); DOBLabel= new UILabel () { Font=UIFont.BoldSystemFontOfSize(Device.fontSize*12f), TextColor = UIColor.Black, TextAlignment=UITextAlignment.Right, Text=AccountScreenData.DOBLabelText, }; Add(DOBLabel); DOB= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, Text=AccountScreenData.DOBText, }; Add(DOB); spreadTheWordView= new UIView () { BackgroundColor = UIColor.White, }; Add(spreadTheWordView); spreadTheWordLabel= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=AccountScreenData.SpreadTheWordLabelText, }; Add(spreadTheWordLabel); spreadTheWordMessage= new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false, Text=AccountScreenData.SpreadTheWordMessageText, }; Add(spreadTheWordMessage); /* facebookLikeBtn = new LikeButton (); facebookLikeBtn.SetObjectId ("https://www.facebook.com/tap5050"); Add (facebookLikeBtn); List<string> readPermissions = new List<string> { "public_profile"}; loginButton = new LoginButton () { LoginBehavior = LoginBehavior.Native, ReadPermissions = readPermissions.ToArray (), }; Add (loginButton); */ facebookLikeBtn = new CustomBtn (); facebookLikeBtn.SetTitle (AccountScreenData.facebookLikeBtnTitle, UIControlState.Normal); Add(facebookLikeBtn); logoutBtn =new CustomBtn(); logoutBtn.SetTitle (AccountScreenData.LogoutBtnTitle, UIControlState.Normal); logoutBtn.TitleLabel.TextAlignment = UITextAlignment.Center; logoutBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(logoutBtn); logoutSocialBtn =new CustomBtn(); logoutSocialBtn.SetTitle (AccountScreenData.LogoutSocialBtnTitle, UIControlState.Normal); logoutSocialBtn.SetTitleColor (UIColor.White, UIControlState.Normal); logoutSocialBtn.TitleLabel.TextAlignment = UITextAlignment.Center; Add(logoutSocialBtn); ResetPWDBtn =new CustomBtn(); ResetPWDBtn.SetTitle (AccountScreenData.ResetPWDBtnTitle, UIControlState.Normal); ResetPWDBtn.SetTitleColor (UIColor.White, UIControlState.Normal); ResetPWDBtn.TitleLabel.TextAlignment = UITextAlignment.Center; Add(ResetPWDBtn); Rotate (); }
public RelationsGroupScreenCell() : base() { BackgroundColor=UIColor.Clear; raffleImageView=new UIImageView() { ContentMode = UIViewContentMode.ScaleAspectFit, }; Add (raffleImageView); raffleNameTextView= new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false }; Add(raffleNameTextView); organizationLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, }; Add(organizationLabel); //*************************************************************************** status = new UILabel () { //TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, }; Add(status); TeamName= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, }; Add(TeamName); LeaderName= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, }; Add(LeaderName); CreateGrpBtn=new CustomBtn(); CreateGrpBtn.SetTitle (RelationsScreenData.CreateGrpBtnTitle, UIControlState.Normal); CreateGrpBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(CreateGrpBtn); JoinGrpBtn=new CustomBtn(); JoinGrpBtn.SetTitle (RelationsScreenData.JoinGrpBtnTitle, UIControlState.Normal); JoinGrpBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(JoinGrpBtn); InviteBtn=new CustomBtn(); InviteBtn.SetTitle (RelationsScreenData.InviteBtnTitle, UIControlState.Normal); InviteBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(InviteBtn); disbandBtn=new CustomBtn(); disbandBtn.SetTitle (RelationsScreenData.disbandBtnTitle, UIControlState.Normal); disbandBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(disbandBtn); Rotate (); }
public ResetPasswordView() { BackgroundColor = UIColor.White; OldPwdTextField = new UITextField( ) { Placeholder = ResetPasswordScreenData.OldPwdTextFieldPlaceholder, Text = ResetPasswordScreenData.OldPwdTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=true, }; OldPwdTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(OldPwdTextField); NewPwdTextField = new UITextField( ) { Placeholder = ResetPasswordScreenData.NewPwdTextFieldPlaceholder, Text = ResetPasswordScreenData.NewPwdTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=true, }; NewPwdTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(NewPwdTextField); ConfirmPwdTextField = new UITextField( ) { Placeholder = ResetPasswordScreenData.ConfirmPwdTextFieldPlaceholder, Text = ResetPasswordScreenData.ConfirmPwdTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=true, }; ConfirmPwdTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(ConfirmPwdTextField); PwdRulesTextView=new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, Text=ResetPasswordScreenData.PasswordFormat, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false }; Add(PwdRulesTextView); ResetBtn =new CustomBtn(); ResetBtn.SetTitle (ResetPasswordScreenData.ResetBtnTitle, UIControlState.Normal); ResetBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(ResetBtn); Rotate (); }
public AboutScreenView() { BackgroundColor = UIColor.FromRGB (235, 235, 235); //GUI component*********************************************** noRaffleView = new UIView () { BackgroundColor = UIColor.White, }; Add(noRaffleView); noRaffleTextLable= new UITextView () { Text=AboutScreenData.NoRaffleText, TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false }; Add(noRaffleTextLable); organizationNameTextField= new UITextField( ) { Placeholder = AboutScreenData.organizationNameTextFieldPlaceholder, Text = "", ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, }; organizationNameTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(organizationNameTextField); phoneNumberTextField= new UITextField( ) { Placeholder = AboutScreenData.phoneNumberTextFieldPlaceholder, Text = "", ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, }; phoneNumberTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(phoneNumberTextField); sentBtn =new CustomBtn(); sentBtn.SetTitle (AboutScreenData.sentBtnTitle, UIControlState.Normal); sentBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(sentBtn); tutorialsView = new UIView () { BackgroundColor = UIColor.White, }; Add(tutorialsView); tutorialLabel= new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=AboutScreenData.TutorialTextLabel, }; Add(tutorialLabel); tutorial0 = UIButton.FromType (UIButtonType.RoundedRect); tutorial0.SetTitle (AboutScreenData.Tutorial0Text, UIControlState.Normal); Add(tutorial0); tutorial1 = UIButton.FromType (UIButtonType.RoundedRect); tutorial1.SetTitle (AboutScreenData.Tutorial1Text, UIControlState.Normal); Add(tutorial1); tutorial2 = UIButton.FromType (UIButtonType.RoundedRect); tutorial2.SetTitle (AboutScreenData.Tutorial2Text, UIControlState.Normal); Add(tutorial2); tutorial3 = UIButton.FromType (UIButtonType.RoundedRect); tutorial3.SetTitle (AboutScreenData.Tutorial3Text, UIControlState.Normal); Add(tutorial3); tutorial4 = UIButton.FromType (UIButtonType.RoundedRect); tutorial4.SetTitle (AboutScreenData.Tutorial4Text, UIControlState.Normal); Add(tutorial4); tutorial5 = UIButton.FromType (UIButtonType.RoundedRect); tutorial5.SetTitle (AboutScreenData.Tutorial5Text, UIControlState.Normal); Add(tutorial5); DeviceIDTextView = new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false, Text=AboutScreenData.DeviceIDLabelText, }; Add (DeviceIDTextView); //move the view when the keyboard is up NSNotificationCenter.DefaultCenter.AddObserver (UIKeyboard.DidShowNotification,KeyBoardUpNotification); Rotate (); }
public RaffleListScreenView(RaffleListScreenController RaffleListScreenController,List<Tap5050Event> eventlist,List<UIImage> eventImageList) { BackgroundColor = UIColor.FromRGB (235, 235, 235); //basic info GUI************************************************** confirmedBtn=UIButton.FromType(UIButtonType.RoundedRect); confirmedBtn.BackgroundColor = UIColor.Clear; confirmedBtn.SetTitle (RaffleListScreenData.TableViewFirstHeaderText, UIControlState.Normal); confirmedBtn.SetTitleColor (UIColor.Black, UIControlState.Normal); Add(confirmedBtn); PotentialBtn=UIButton.FromType(UIButtonType.RoundedRect); PotentialBtn.BackgroundColor = UIColor.Clear; PotentialBtn.SetTitle (RaffleListScreenData.TableViewSecondHeaderText, UIControlState.Normal); PotentialBtn.SetTitleColor (UIColor.Black, UIControlState.Normal); Add(PotentialBtn); ConfirmedBarView= new UIView () { BackgroundColor=UIColor.FromRGB (245, 245, 245), }; Add (ConfirmedBarView); PotentialBarView= new UIView () { BackgroundColor=UIColor.FromRGB (245, 245, 245), }; Add (PotentialBarView); RaffleListTableView = new UITableView () { Source=new RaffleListSource(RaffleListScreenController), SeparatorColor=UIColor.Clear, BackgroundColor=UIColor.Clear, }; Add (RaffleListTableView); LocationLabel= new UILabel () { Text=RaffleListScreenData.LocationLabelText, TextAlignment=UITextAlignment.Left, TextColor = UIColor.Gray, BackgroundColor=UIColor.Clear, }; Add(LocationLabel); //*************************************************************** ScrollView = new UIScrollView () { BackgroundColor=UIColor.White, }; Add (ScrollView); noRaffleTextLable= new UITextView () { Text=RaffleListScreenData.NoRaffleText, TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false }; ScrollView.Add(noRaffleTextLable); organizationNameTextField= new UITextField( ) { Placeholder = RaffleListScreenData.organizationNameTextFieldPlaceholder, Text = "", ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, }; organizationNameTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; ScrollView.Add(organizationNameTextField); phoneNumberTextField= new UITextField( ) { Placeholder = RaffleListScreenData.phoneNumberTextFieldPlaceholder, Text = "", ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.Default, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, }; phoneNumberTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; ScrollView.Add(phoneNumberTextField); sentBtn =new CustomBtn(); sentBtn.SetTitle (RaffleListScreenData.sentBtnTitle, UIControlState.Normal); sentBtn.SetTitleColor (UIColor.White, UIControlState.Normal); ScrollView.Add(sentBtn); //move the view when the keyboard is up NSNotificationCenter.DefaultCenter.AddObserver (UIKeyboard.DidShowNotification,KeyBoardUpNotification); Rotate (); }
public ReqeustTPScreenView() { BackgroundColor = UIColor.FromRGB (235, 235, 235); bgCard = new UIView () { BackgroundColor = UIColor.FromRGB (255, 255, 255), }; Add (bgCard); provideClientInfoTextView = new UITextView () { TextColor = UIColor.Black, TextAlignment = UITextAlignment.Left, Text = RequestTPScreenData.ProvideClientInfoTextViewText, Editable = false, BackgroundColor = UIColor.Clear, ScrollEnabled = false }; Add (provideClientInfoTextView); clientInfoTextField= new UITextField( ) { Placeholder=RequestTPScreenData.ClientInfoTextFieldPlaceholder, Text=RequestTPScreenData.ClientInfoTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.EmailAddress, AutocapitalizationType = UITextAutocapitalizationType.None, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false }; clientInfoTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(clientInfoTextField); requestTPBtn =new CustomBtn(); requestTPBtn.SetTitle (RequestTPScreenData.RequestTPBtnTitle, UIControlState.Normal); requestTPBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(requestTPBtn); dontHaveAccountLabel = new UILabel () { TextAlignment=UITextAlignment.Center, TextColor = UIColor.Black, Text=RequestTPScreenData.DontHaveAccountLabelText, }; Add(dontHaveAccountLabel); signUpBtn = UIButton.FromType (UIButtonType.RoundedRect); signUpBtn.SetTitle (RequestTPScreenData.SignUpBtnTitle, UIControlState.Normal); Add(signUpBtn); //move the view when the keyboard is up NSNotificationCenter.DefaultCenter.AddObserver (UIKeyboard.DidShowNotification,KeyBoardUpNotification); Rotate (); }
public RaffleDetailScreenView(Tap5050Event raffle,UIImage raffleImage,UIInterfaceOrientation UIInterfaceOrientation) { this.raffle = raffle; this.raffleImage = raffleImage; BackgroundColor = UIColor.FromRGB (235, 235, 235); //GUI component*********************************************** raffleDetailView = new UIView () { BackgroundColor=UIColor.FromRGB (255, 255, 255), }; Add (raffleDetailView); jackPotLabel = new UILabel () { TextColor = UIColor.Red, TextAlignment=UITextAlignment.Center, Text="$"+raffle.jackpot_total, Hidden=(raffle.has_jackpot == "Y"?false:true) }; Add(jackPotLabel); jackPotDescriptionLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=raffle.jackpot_description, Hidden=(raffle.has_jackpot == "Y"?false:true) }; Add(jackPotDescriptionLabel); raffleImageView=new UIImageView() { ContentMode = UIViewContentMode.ScaleAspectFit, Image = raffleImage }; Add (raffleImageView); raffleNameTextView = new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=raffle.event_name, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false }; Add(raffleNameTextView); licenseNumberLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=RaffleDetailData.LicenseNumberLabelText, }; Add(licenseNumberLabel); licenseNumberLabel2 = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=raffle.licence_number }; Add(licenseNumberLabel2); organizationLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=raffle.organization, }; Add(organizationLabel); descriptionTextView = new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, Text=raffle.description, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false }; Add(descriptionTextView); seePrizeBtn =new CustomBtn(); seePrizeBtn.SetTitle (RaffleDetailData.SeePrizeBtnTitle, UIControlState.Normal); seePrizeBtn.SetTitleColor (UIColor.White, UIControlState.Normal); seePrizeBtn.Hidden = (String.IsNullOrEmpty (raffle.prize_url)||(!raffle.prize_url.ToLower ().Contains ("https://")) ? true : false); Add(seePrizeBtn); sellTicketBtn =new CustomBtn(); sellTicketBtn.SetTitle (RaffleDetailData.SellTicketBtnTitle, UIControlState.Normal); sellTicketBtn.SetTitleColor (UIColor.White, UIControlState.Normal); sellTicketBtn.Hidden = (raffle.have_contract == "Y" ? false : true); Add(sellTicketBtn); applyContractBtn =new CustomBtn(); applyContractBtn.SetTitle (RaffleDetailData.ApplyContractBtnTitle, UIControlState.Normal); applyContractBtn.SetTitleColor (UIColor.White, UIControlState.Normal); applyContractBtn.Hidden = (raffle.have_contract == "Y" ? true : false); Add(applyContractBtn); //**************************************************************************************** contactView = new UIView () { BackgroundColor=UIColor.FromRGB (255, 255, 255), }; Add (contactView); contactDescriptionTextField= new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=RaffleDetailData.contactDescriptionText, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false }; Add(contactDescriptionTextField); contactTextField = new UITextField( ) { Placeholder=RaffleDetailData.ContactTextFieldPlaceholder, Text=RaffleDetailData.ContactTextFieldText, ClearButtonMode=UITextFieldViewMode.Always, KeyboardType=UIKeyboardType.EmailAddress, AutocapitalizationType = UITextAutocapitalizationType.None, ReturnKeyType=UIReturnKeyType.Done, TextColor = UIColor.Black, BackgroundColor = UIColor.Clear, BorderStyle = UITextBorderStyle.RoundedRect, Enabled = true, SecureTextEntry=false }; contactTextField.ShouldReturn += (textField) => { textField.ResignFirstResponder(); return true; }; Add(contactTextField); sentContactBtn =new CustomBtn(); sentContactBtn.SetTitle (RaffleDetailData.SentContactBtnTitle, UIControlState.Normal); sentContactBtn.SetTitleColor (UIColor.White, UIControlState.Normal); Add(sentContactBtn); //move the view when the keyboard is up NSNotificationCenter.DefaultCenter.AddObserver (UIKeyboard.DidShowNotification,KeyBoardUpNotification); Rotate (UIInterfaceOrientation); }
//******************************************** //public GroupGoalScreenView GroupGoalView{ get; set;} public RaffleDetailScreenView(Tap5050Event raffle,UIImage raffleImage,UIInterfaceOrientation UIInterfaceOrientation) { this.raffle = raffle; this.raffleImage = raffleImage; BackgroundColor = UIColor.FromRGB (235, 235, 235); ScrollEnabled = false; //GUI component*********************************************** PersonalBtn=UIButton.FromType(UIButtonType.System); PersonalBtn.BackgroundColor = UIColor.Clear; PersonalBtn.SetTitle (RaffleDetailData.PersonalGoalBtnTitle, UIControlState.Normal); PersonalBtn.SetTitleColor (UIColor.Black, UIControlState.Normal); Add(PersonalBtn); GrpBtn=UIButton.FromType(UIButtonType.System); GrpBtn.BackgroundColor = UIColor.Clear; GrpBtn.SetTitle (RaffleDetailData.GroupGoalBtnTitle, UIControlState.Normal); GrpBtn.SetTitleColor (UIColor.Black, UIControlState.Normal); Add(GrpBtn); RaffleDetailBtn=UIButton.FromType(UIButtonType.System); RaffleDetailBtn.BackgroundColor = UIColor.Clear; RaffleDetailBtn.SetTitle (RaffleDetailData.RaffleDetailBtnTitle, UIControlState.Normal); RaffleDetailBtn.SetTitleColor (UIColor.Black, UIControlState.Normal); Add(RaffleDetailBtn); RaffleDetailBarView= new UIView () { BackgroundColor=UIColor.FromRGB (245, 245, 245), }; Add (RaffleDetailBarView); PersonalBarView= new UIView () { BackgroundColor=UIColor.FromRGB (245, 245, 245), }; Add (PersonalBarView); GrpBarView= new UIView () { BackgroundColor=UIColor.FromRGB (245, 245, 245), }; Add (GrpBarView); raffleDetailView = new UIScrollView () { BackgroundColor=UIColor.Clear, }; Add (raffleDetailView); GoalView = new GoalScreenView (); Add (GoalView); jackPotLabel = new UILabel () { TextColor = UIColor.Red, TextAlignment=UITextAlignment.Center, Text="$"+raffle.jackpot_total, Hidden=(raffle.has_jackpot == "Y"?false:true) }; raffleDetailView.Add(jackPotLabel); jackPotDescriptionLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=raffle.jackpot_description, Hidden=(raffle.has_jackpot == "Y"?false:true) }; raffleDetailView.Add(jackPotDescriptionLabel); raffleImageView=new UIImageView() { ContentMode = UIViewContentMode.ScaleAspectFit, Image = raffleImage }; raffleDetailView.Add (raffleImageView); raffleNameTextView = new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=raffle.event_name, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false }; raffleDetailView.Add(raffleNameTextView); licenseNumberLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=RaffleDetailData.LicenseNumberLabelText, }; raffleDetailView.Add(licenseNumberLabel); licenseNumberLabel2 = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=raffle.licence_number }; raffleDetailView.Add(licenseNumberLabel2); organizationLabel = new UILabel () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Center, Text=raffle.organization, }; raffleDetailView.Add(organizationLabel); descriptionTextView = new UITextView () { TextColor = UIColor.Black, TextAlignment=UITextAlignment.Left, Text=raffle.description, Editable=false, BackgroundColor=UIColor.Clear, ScrollEnabled=false }; raffleDetailView.Add(descriptionTextView); seePrizeBtn =new CustomBtn(); seePrizeBtn.SetTitle (RaffleDetailData.SeePrizeBtnTitle, UIControlState.Normal); seePrizeBtn.SetTitleColor (UIColor.White, UIControlState.Normal); seePrizeBtn.Hidden = (String.IsNullOrEmpty (raffle.prize_url)||(!raffle.prize_url.ToLower ().Contains ("https://")) ? true : false); raffleDetailView.Add(seePrizeBtn); sellTicketBtn =new CustomBtn(); sellTicketBtn.SetTitle (RaffleDetailData.SellTicketBtnTitle, UIControlState.Normal); sellTicketBtn.SetTitleColor (UIColor.White, UIControlState.Normal); sellTicketBtn.Hidden = (raffle.have_contract == "Y" ? false : true); raffleDetailView.Add(sellTicketBtn); applyContractBtn =new CustomBtn(); applyContractBtn.SetTitle (RaffleDetailData.ApplyContractBtnTitle, UIControlState.Normal); applyContractBtn.SetTitleColor (UIColor.White, UIControlState.Normal); applyContractBtn.Hidden = (raffle.have_contract == "Y" ? true : false); raffleDetailView.Add(applyContractBtn); //GroupGoalView = new GroupGoalScreenView (); //Add (GroupGoalView); //move the view when the keyboard is up NSNotificationCenter.DefaultCenter.AddObserver (UIKeyboard.DidShowNotification,KeyBoardUpNotification); Rotate (UIInterfaceOrientation); }