Пример #1
0
        protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
        {
            ImageFilterAdapter adapter = (ImageFilterAdapter)Adapter;

            ItemView.InitItemLayout(1, adapter.getItemCount());

            base.OnLayout(changed, left, top, right, bottom);
        }
Пример #2
0
        protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
        {
            if (changed)
            {
                ImageFilterAdapter adapter = (ImageFilterAdapter)Adapter;

                ItemView.InitItemLayout(NumColumns, adapter.getItemCount());

                if (NumColumns > 1)
                {
                    int columnWidth = MeasuredWidth / NumColumns;
                    adapter.MeasureItems(columnWidth);
                }
            }

            base.OnLayout(changed, left, top, right, bottom);
        }