示例#1
0
        protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
        {
            base.OnLayout(changed, left, top, right, bottom);

            if (changed)
            {
                sticker.getMatrix().PostTranslate((Width - sticker.getStickerWidth()) / 2, (Height - sticker.getStickerHeight()) / 2);
            }
        }