问题:居中对齐的底部Tab,在某些手机上向右偏移
分析:原因是Android版本之间的差异,Android4.2以上和4.2以下区别。如果在4.2以下的环境运行、android:button=“@null”是不生效的、只能起到setButtonDrawable(透明图片)的作用、始终有个空位在那里、倒是radio button的drawableTop和text向右边偏移。
解决:到xml上添加android:background="@android:color/transparent"就没问题