我有一个MVVMCross应用程序,其中我想要更新的Alpha值时,用户 Select 了一些值超过预期的一个.
我有文本视图,下面是代码.
<TextView
style="@style/B1.TextView"
android:layout_width="32dp"
android:layout_height="32dp"
android:background="@drawable/shape_circle_bluescale1"
android:gravity="center"
android:text="@string/plus"
android:textColor="@color/bluescale4"
app:MvxBind="Click IncrementQuantityCommand; Alpha QtyAlpha;"/>
我的视图模型中有一个public float QtyAlpha,我想在运行时更新下面的方法,但它没有更新.方法被调用,但在Android UI中不更新值.
View Model方法来更新TextView的Alpha.
public void SetQuantityCount(int qty, float alpha = 1.0f)
{
Qty = qty.ToString();
QtyAlpha = alpha;
}
它正在iOS用户界面中进行更新.
请给我指点我做错的绑定值.
先谢谢你.