Mvvmcross Android Togglebutton binding doesn't seem to work in release mode

喜夏-厌秋 提交于 2019-12-11 08:22:37

问题


I have a strange behaviour in the sense that an app which works perfectly fine in debug mode behaves differently when in release mode. More in particular, I use a couple of togglebuttons with dual property binding for which the binding works when compiled and deployed for debug while it doesn't anymore when in release mode. All other used widgets, including normal buttons seem to work just fine. AXML snippet for one of the buttons here included:

                    <ToggleButton
                    android:layout_width="match_parent"
                    android:layout_height="80dp"
                    android:id="@+id/bindtoggleeco"
                    local:MvxBind="Click EcoToggleCommand;Checked EcoModeToggle"
                    android:layout_marginLeft="30dp"
                    android:layout_marginRight="30dp"
                    android:layout_marginTop="0dp"
                    android:layout_marginBottom="10dp"
                    android:textSize="25sp" />

What could cause such behaviour ? I honestly have no clue where to start looking as it works perfectly fine when debugging... Also don't know whether it's the Click property binding that fails or the Checked one.

EDIT: Some more info: - behaviour is observed in 4.0.3;4.1.2 and 4.2.2 with minimum & target API set to 4.0.3 - I seem to get hundreds of messages in the outputwindow that weren't there bin debug mode (Visual studio is connected to the emulator for testing) "02-27 01:04:37.812 W/Trace ( 2044): Unexpected value from nativeGetEnabledTags: 0"

来源:https://stackoverflow.com/questions/22056747/mvvmcross-android-togglebutton-binding-doesnt-seem-to-work-in-release-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!