protected override View GetViewImpl(Context context, View convertView, ViewGroup parent) { var view = DroidResources.LoadButtonLayout(context, convertView, parent, LayoutName); if (view != null) { Button button; DroidResources.DecodeButtonLayout(Context, view, out button); button.Text = Caption; button.SetOnClickListener(this); } return(view); }
protected override void UpdateCaptionDisplay(View cell) { if (cell == null) { return; } Button button; DroidResources.DecodeButtonLayout(Context, cell, out button); button.Text = Caption; base.UpdateCaptionDisplay(cell); }