Replies: 2 comments 3 replies
-
Sounds like linker is stripping out code. Bindings are done using reflection, so you need to hint the linker that Do you have a LinkerPleaseInclude file? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, I have public class LinkerPleaseInclude
{
public void Include(Button button)
{
button.Click += (s, e) => button.Text = button.Text + "";
button.Typeface = button.Typeface;
button.Visibility = button.Visibility;
}
public void Include(CheckBox checkBox)
{
checkBox.CheckedChange += (sender, args) => checkBox.Checked = !checkBox.Checked;
}
public void Include(Switch @switch)
{
@switch.CheckedChange += (sender, args) => @switch.Checked = !@switch.Checked;
}
public void Include(View view)
{
view.Click += (s, e) => view.ContentDescription = view.ContentDescription + "";
view.Visibility = view.Visibility;
}
public void Include(TextView text)
{
text.AfterTextChanged += (sender, args) => text.Text = "" + text.Text;
text.Hint = "" + text.Hint;
text.Typeface = text.Typeface;
text.Visibility = text.Visibility;
}
public void Include(EditText edit)
{
edit.Typeface = edit.Typeface;
}
public void Include(CheckedTextView text)
{
text.TextChanged += (sender, args) => text.Text = "" + text.Text;
text.Hint = "" + text.Hint;
}
public void Include(CompoundButton cb)
{
cb.CheckedChange += (sender, args) => cb.Checked = !cb.Checked;
}
public void Include(SeekBar sb)
{
sb.ProgressChanged += (sender, args) => sb.Progress = sb.Progress + 1;
}
public void Include(Activity act)
{
act.Title = act.Title + "";
}
public void Include(INotifyCollectionChanged changed)
{
changed.CollectionChanged += (s, e) => { var test = $"{e.Action}{e.NewItems}{e.NewStartingIndex}{e.OldItems}{e.OldStartingIndex}"; };
}
public void Include(ICommand command)
{
command.CanExecuteChanged += (s, e) => { if (command.CanExecute(null)) command.Execute(null); };
}
public void Include(MvxPropertyInjector injector)
{
injector = new MvxPropertyInjector();
}
public void Include(System.ComponentModel.INotifyPropertyChanged changed)
{
changed.PropertyChanged += (sender, e) =>
{
var test = e.PropertyName;
};
}
public void Include(RecyclerView.ViewHolder vh, MvxRecyclerView list)
{
vh.ItemView.Click += (sender, args) => { };
vh.ItemView.LongClick += (sender, args) => { };
list.ItemsSource = null;
list.Click += (sender, args) => { };
}
public class IncludeMvxPluginColor : MvxColorValueConverter
{
protected override System.Drawing.Color Convert(object value, object? parameter, CultureInfo? culture)
{
throw new NotImplementedException();
}
}
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this warning in my app when I use version from Google Play
Here my bindings in Android Xml file:
But when I build my project from IDE (Rider) It is all ok
Beta Was this translation helpful? Give feedback.
All reactions