Beispiel #1
0
        public FilledAutofillField(AssistStructure.ViewNode viewNode)
        {
            AutofillHints = AutofillHelper.FilterForSupportedHints(viewNode.GetAutofillHints());
            AutofillValue autofillValue = viewNode.AutofillValue;

            if (autofillValue != null)
            {
                if (autofillValue.IsList)
                {
                    string[] autofillOptions = viewNode.GetAutofillOptions();
                    int      index           = autofillValue.ListValue;
                    if (autofillOptions != null && autofillOptions.Length > 0)
                    {
                        TextValue = autofillOptions[index];
                    }
                }
                else if (autofillValue.IsDate)
                {
                    DateValue = autofillValue.DateValue;
                }
                else if (autofillValue.IsText)
                {
                    // Using toString of AutofillValue.getTextValue in order to save it to
                    // SharedPreferences.
                    TextValue = autofillValue.TextValue;
                }
            }
        }
        public ConfirmIdentityView(ViewGroup root) : base(Resource.Layout.ConfirmIdentity, root)
        {
            Title = PowerPlannerResources.GetString("Settings_ConfirmIdentityPage.Title");

            AutofillHelper.EnableForAll(this);

            FindViewById <Button>(Resource.Id.ButtonConfirmIdentity).Click += delegate { ViewModel.Continue(); };
        }
Beispiel #3
0
        public InflatedViewWithBinding(int resource, Context context) : base(context)
        {
            // By default we disable auto fill. Classes inheriting from this (like LoginView) can choose to re-enable auto fill.
            AutofillHelper.DisableForAll(this);

            // Issue: Since we place our content in a frame layout, we can't control wrap_content or match_parent from the level below
            var view = CreateView(LayoutInflater.FromContext(context), resource, this);

            base.AddView(view);
        }
        public ChangeEmailView(ViewGroup root) : base(Resource.Layout.ChangeEmail, root)
        {
            _buttonUpdateEmail = FindViewById <Button>(Resource.Id.ButtonUpdateEmail);
            _textViewError     = FindViewById <TextView>(Resource.Id.TextViewError);
            _editTextEmail     = FindViewById <TextInputEditText>(Resource.Id.EditTextEmail);

            _buttonUpdateEmail.Click += _buttonChangeEmail_Click;

            Title = PowerPlannerResources.GetString("Settings_ChangeEmailPage.Title");

            AutofillHelper.EnableForAll(this);
        }
        public ResetPasswordView(ViewGroup root) : base(Resource.Layout.ResetPassword, root)
        {
            Title = PowerPlannerResources.GetString("ForgotPassword_ButtonHeader.Content").ToUpper();

            AutofillHelper.EnableForAll(this);
        }
        public CreateAccountView(ViewGroup root) : base(Resource.Layout.CreateAccount, root)
        {
            Title = PowerPlannerResources.GetString("CreateAccountPage.Title");

            AutofillHelper.EnableForAll(this);
        }
Beispiel #7
0
 public LoginView(ViewGroup root) : base(Resource.Layout.Login, root)
 {
     Title = PowerPlannerResources.GetString("LoginPage.Title");
     AutofillHelper.EnableForAll(this);
 }
Beispiel #8
0
        public ForgotUsernameView(ViewGroup root) : base(Resource.Layout.ForgotUsername, root)
        {
            Title = PowerPlannerResources.GetString("ForgotUsername_String_MessageHeader").ToUpper();

            AutofillHelper.EnableForAll(this);
        }