1.设置UIButton的文字居右显示 [button setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight]; 2.去掉点击默认置灰效果 [button setAdjustsImageWhenHighlighted:NO]; // default is YES. if YES, image is drawn darker when highlighted(pressed)…
TextView,很常见的控件.关于文字大小的方法有: android.widget.TextView#getTextSize 返回值的单位是PX /** * @return the size (in pixels) of the default text size in this TextView. */ @ViewDebug.ExportedProperty(category = "text") public float getTextSize() { return mTextP…