Example #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;
        }
Example #2
0
        protected override View GetViewImpl(Context context, View convertView, 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);
        }
Example #3
0
        protected override void UpdateDetailDisplay(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);
            }
        }