Пример #1
0
        public EditRowDialog(Activity context, RowController controller)
        {
            this.context    = context;
            this.controller = controller;

            mainView = new ScrollView(context);

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

            deleteButton = new Button(context);
            deleteButton.SetText(Resource.String.delete_button_txt);
            deleteButton.SetBackgroundColor(Android.Graphics.Color.Red);
            deleteButton.SetOnClickListener(this);
            layout.AddView(deleteButton);

            cells   = new List <CellView>();
            columns = new List <ColumnView>();

            this.controller = controller;
            controller.HookView(this);
        }
        public TableRowEditView(Activity context, RowController controller)
        {
            this.context    = context;
            this.controller = controller;

            mainView   = context.LayoutInflater.Inflate(Resource.Layout.ItemsEditlinearlayout, null, false);
            mainLayout = mainView.FindViewById <LinearLayout>(Resource.Id.editCellItemsLayout);

            cells = new List <CellView>();

            controller.HookView(this);
        }
Пример #3
0
        public ItemView(Activity context, RowController controller)
        {
            this.context    = context;
            this.controller = controller;
            imagesAmount    = 0;

            cells = new List <ItemCellView>();

            mainView = context.LayoutInflater.Inflate(Resource.Layout.TableItem, null);
            mainView.SetOnClickListener(this);

            contentlayout        = mainView.FindViewById <LinearLayout>(Resource.Id.linearLayoutItemContent);
            mainIdentifierLayout = mainView.FindViewById <RelativeLayout>(Resource.Id.relativeLayoutFirstCell);
            imageView            = mainView.FindViewById <FrameLayout>(Resource.Id.imageViewItemImage);

            controller.HookView(this);
        }
Пример #4
0
        public TableRowView(Activity context, RowController controller)
        {
            this.context = context;
            row_view     = new TableRow(context);

            checkBox = new CheckBox(context);
            row_view.AddView(checkBox);
            checkBox.SetOnCheckedChangeListener(this);

            expand_view_button = new ImageButton(context);
            expand_view_button.SetImageResource(Android.Resource.Drawable.IcInputGet);
            expand_view_button.SetBackgroundColor(Android.Graphics.Color.Transparent);
            expand_view_button.SetScaleType(ImageView.ScaleType.FitCenter);

            expand_view_button.SetOnClickListener(this);
            row_view.AddView(expand_view_button);

            cells = new List <CellView>();

            this.controller = controller;
            controller.HookView(this);
        }