I have an Android app using several MvxGridView with ItemsSource bound
local:MvxBind="ItemsSource Groups;ItemClick ShowGroupCommand"
local:MvxBind="ItemsSource Products;ItemClick ShowProductCommand"
When running app in Release mode, link behavior='Don't link', app size is 20MB!, everything works as expected.
Switching link behavior to 'Link SDK assemblies only', app size is 7MB, but when running I get unexpected behavior. Here is some of the app output which mention issues with the MvxGridView's ItemsSource binding:
I am aware of the linking options in Xamarin (here).
But I don't know what I should do in order to make it work.
I am working on a small pilot app, I need to send it to client to check it out. It won't look good sending 20MB when the full Android app I want to rewrite with Xamarin and MVVMcross is under 1MB. I already spent a lot of time on this issue with no luck, hope someone can help.
There are several ways to work around this including:
There are also plenty of questions and answers on here about this already: