//int count;

        public CellViewImage(Activity context, CellControllerImage controller)
        {
            this.context = context;

            mainView = new RelativeLayout(context);

            imageView = new ImageButton(context);
            imageView.SetBackgroundColor(Color.Transparent);
            imageView.SetImageResource(Android.Resource.Drawable.IcMenuGallery);

            mainView.AddView(imageView);

            this.controller = controller;
            controller.HookView(this);
        }
예제 #2
0
        public EditImageDialog(Activity context, CellControllerImage controller)
        {
            this.context    = context;
            this.controller = controller;

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

            lt.EnableTransitionType(LayoutTransitionType.Appearing);
            lt.EnableTransitionType(LayoutTransitionType.Changing);
            mainView.LayoutTransition = lt;

            imageView = new ImageView(context);
            mainView.AddView(imageView);

            controller.HookView(this);
        }