【发布时间】:2015-08-19 08:17:19
【问题描述】:
我在资源文件夹中有两张图片
1) ImgMsg_Normal.png
2) ImgMsg_Grey.png
in Layout file:
<ImageView
android:id="@+id/imgMsg"
android:src="@drawable/ImgMsg_Normal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxHeight="80dp"
android:maxWidth="80dp"
android:layout_margin="20dp"
android:scaleType="fitCenter"
local:MvxBind =" " />
在代码后面:
当这个页面被加载时,它首先显示所述图像:ImgMsg_Normal。
1) 如何通过在Local : MvxBind 中传递图像文件名:ImgMsg_Grey 来动态更改图像?
谢谢
【问题讨论】:
标签: xamarin xamarin.android mvvmcross