相关疑难解决方法(0)

在启用链接器的情况下,将MvvmCross从4.2.3更新到4.4.0后,Android EditText绑定被破坏

之前正在运行的我的MvvmCross Android应用程序因为从4.2.3到4.4.0的MvvmCross更新而被打破

<EditText
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   local:MvxBind="Text Login" />

public string Login
{
    get { return _login; }
    set { SetProperty(ref _login, value); }
}
Run Code Online (Sandbox Code Playgroud)

LinkerPleaseInclude当然:

public void Include(EditText text)
        {
            text.Enabled = !text.Enabled;
            text.TextChanged += (sender, args) => text.Text = "" + text.Text;
            text.Hint = "" + text.Hint;
            text.Click += (s, e) => text.Visibility = text.Visibility - 1;
        }

        public void Include(TextView text)
        {
            text.TextChanged += (sender, args) => text.Text = "" + text.Text;
            text.Hint = "" + text.Hint;
            text.Click …
Run Code Online (Sandbox Code Playgroud)

android xamarin.android android-edittext mvvmcross xamarin

5
推荐指数
1
解决办法
1135
查看次数