11 using Android.Runtime;
14 namespace MonoDroid.Dialog
18 public int FontSize {
get;set;}
21 get {
return _value; }
22 set { _value = value;
if (_text != null) _text.Text = _value; }
24 private string _value;
29 : base(caption, (int)
DroidResources.ElementLayout.dialog_labelfieldright)
34 : base(caption, layoutId)
39 : base(caption, (int)
DroidResources.ElementLayout.dialog_labelfieldright)
46 : base(caption, (int)
DroidResources.ElementLayout.dialog_labelfieldright)
53 : base(caption, layoutId)
59 : base(caption, (int)
DroidResources.ElementLayout.dialog_labelfieldright)
65 public override View
GetView(Context context, View convertView, ViewGroup parent)
67 View view = DroidResources.LoadStringElementLayout(context, convertView, parent, LayoutId, out _caption, out _text);
70 var fontSize = FontSize > 0 ? FontSize : 21;
71 _caption.Text = Caption;
72 _caption.TextSize = fontSize;
74 _text.TextSize = fontSize;
76 view.Click += delegate { this.Click(); };
85 if(this.Click != null) {
97 return (Value != null ? Value.IndexOf(text, StringComparison.CurrentCultureIgnoreCase) != -1 :
false) ||
104 protected override void Dispose(
bool disposing)
StringElement(string caption, string value)
StringElement(string caption, string value, int layoutId)
override bool Matches(string text)
override void Dispose(bool disposing)
StringElement(string caption, int layoutId)
StringElement(string caption)
override View GetView(Context context, View convertView, ViewGroup parent)
Overriden my most derived classes, creates a view that creates a View with the contents for display ...
StringElement(string caption, string value, Action clicked)
override string Summary()
Returns a summary of the value represented by this object, suitable for rendering as the result of a ...
StringElement(string caption, Action clicked)