【发布时间】:2012-11-28 05:00:33
【问题描述】:
这个问题很简单,但我什么也没找到。如何在代码隐藏中为小部件设置边距。
我在Xamarin's site 中找到了此文档,但我无法将其用于 ImageView
我也在 ImageView 中尝试了 Layout() 方法,但没有成功。
ImageView imgView = FindViewById<ImageView>(Resource.Id.imageView);
imgView.Layout(10, 10, 10, 10);
【问题讨论】:
-
我已经看过了,这个方法在xamarin中不存在。谢谢
标签: c# android android-layout xamarin.android xamarin