コード例 #1
0
        public EditDateDialog(Activity context, CellControllerDate controller)
        {
            this.context    = context;
            this.controller = controller;

            mainView = new LinearLayout(context)
            {
                Orientation = Orientation.Vertical
            };

            picker = new DatePicker(context);
            mainView.AddView(picker);

            controller.HookView(this);
        }
コード例 #2
0
        public CellViewDate(Activity context, CellControllerDate controller)
        {
            this.context    = context;
            this.controller = controller;

            dateText = new EditText(context)
            {
                InputType = InputTypes.ClassDatetime
            };

            dateText.SetMaxLines(1);
            dateText.SetLines(1);
            dateText.SetSingleLine(true);


            int padding = context.Resources.GetDimensionPixelSize(Resource.Dimension.dateView_padding);

            controller.HookView(this);
        }