LoadBooleanElementLayout() public static méthode

public static LoadBooleanElementLayout ( Android.Content.Context context, Android.Views.View convertView, Android.Views.ViewGroup parent, int layoutId, Android.Widget.TextView &label, Android.Widget.TextView &subLabel, Android.Views.View &value ) : Android.Views.View
context Android.Content.Context
convertView Android.Views.View
parent Android.Views.ViewGroup
layoutId int
label Android.Widget.TextView
subLabel Android.Widget.TextView
value Android.Views.View
Résultat Android.Views.View
        public override View GetView(Context context, View convertView, ViewGroup parent)
        {
            View toggleButtonView;
            View view = DroidResources.LoadBooleanElementLayout(context, convertView, parent, LayoutId, out _caption, out _subCaption, out toggleButtonView);

            if (view != null)
            {
                _caption.Text = Caption;
                _toggleButton = toggleButtonView as ToggleButton;
                _toggleButton.SetOnCheckedChangeListener(null);
                _toggleButton.Checked = Value;
                _toggleButton.SetOnCheckedChangeListener(this);
            }
            return(view);
        }
        public override View GetView(Context context, View convertView, ViewGroup parent)
        {
            View checkboxView;
            View view = DroidResources.LoadBooleanElementLayout(context, convertView, parent, LayoutId, out _caption, out _subCaption, out checkboxView);

            if (view != null)
            {
                _caption.Text = Caption;

                _checkbox = checkboxView as CheckBox;
                _checkbox.SetOnCheckedChangeListener(this);
                _checkbox.Checked   = Value;
                _checkbox.Clickable = !ReadOnly;

                if (_subCaption != null)
                {
                    _subCaption.Text = SubCaption;
                }
            }
            return(view);
        }