public static LoadMultilineElementLayout ( Android.Content.Context context, Android.Views.View convertView, Android.Views.ViewGroup parent, int layoutId, EditText &value ) : Android.Views.View | ||
context | Android.Content.Context | |
convertView | Android.Views.View | |
parent | Android.Views.ViewGroup | |
layoutId | int | |
value | EditText | |
return | Android.Views.View |
public override View GetView(Context context, View convertView, ViewGroup parent) { View view = DroidResources.LoadMultilineElementLayout(context, convertView, parent, LayoutId, out _entry); if (_entry != null) { _entry.SetLines(Lines); _entry.Text = Value; _entry.Hint = Caption; } return(view); }
public override View GetView(Context context, View convertView, ViewGroup parent) { View view = DroidResources.LoadMultilineElementLayout(context, convertView, parent, LayoutId, out _entry); if (_entry != null) { _entry.SetLines(Lines); _entry.Text = Value; _entry.Hint = Caption; _entry.TextChanged += delegate(object sender, Android.Text.TextChangedEventArgs e) { if (MaxLength > 0 && _entry.Text.Length > MaxLength) { _entry.Text = _entry.Text.Substring(0, MaxLength); } }; } return(view); }