Exemple #1
0
        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);
        }
Exemple #2
0
        protected override void UpdateCaptionDisplay(View cell)
        {
            if (cell == null)
            {
                return;
            }

            Button button;

            DroidResources.DecodeButtonLayout(Context, cell, out button);
            button.Text = Caption;
            base.UpdateCaptionDisplay(cell);
        }