private LoadImage ( int position, Android.Views.View view ) : void | ||
position | int | |
view | Android.Views.View | |
Résultat | void |
private void LoadImage(int position, View view)
{
var linearLayout = view as LinearLayout;
if (linearLayout == null) return;
var image = linearLayout.GetChildAt(0) as ImageView;
var uri = items[position]["Image"] as Uri;
image.LoadUriOrDefault(uri, Resource.Drawable.DefaultPerson);
}