コード例 #1
0
        protected override void UpdateCaptionDisplay(View cell)
        {
            if (cell == null)
            {
                return;
            }

            TextView label;
            TextView value;

            DroidResources.DecodeStringElementLayout(Context, CurrentAttachedCell, out label, out value);
            label.Text       = Caption;
            label.Visibility = Caption == null ? ViewStates.Gone : ViewStates.Visible;
        }
コード例 #2
0
        protected override Views.View GetViewImpl(Content.Context context, Views.View convertView, Views.ViewGroup parent)
        {
            var view = DroidResources.LoadStringElementLayout(context, convertView, parent, LayoutName);

            if (view != null)
            {
                if (FontSize > 0)
                {
                    TextView label;
                    TextView value;
                    DroidResources.DecodeStringElementLayout(Context, CurrentAttachedCell, out label, out value);
                    label.TextSize = FontSize;
                    value.TextSize = FontSize;
                }
            }
            return(view);
        }
コード例 #3
0
        protected override void UpdateDetailDisplay(Views.View cell)
        {
            if (cell == null)
            {
                return;
            }

            TextView label;
            TextView value;

            DroidResources.DecodeStringElementLayout(Context, CurrentAttachedCell, out label, out value);

            if (value != null)
            {
                value.Text = Format(Value);
            }
        }