private void initText() { if (title == null) { title = new UILabel(); title.setBackgroundColor(UIColor.clearColor); title.setTextAlignment(UITextAlignment.Center); title.setFont(BUTTONFONT); CGSize size = getFrame().size; title.setFrame(new CGRect(0, 0, size.width, size.height)); addSubview(title); if (fore != null) { // Fix Z-order fore.removeFromSuperview(); addSubview(fore); } } }