正常Layout居中逻辑
子Y = 父paddingTop + (父Height - 父paddingTop -父paddingBottom - 子Height) / 2
RelativeLayout居中逻辑
子Y = (父Height - 子Height) / 2
正常Layout居中逻辑
子Y = 父paddingTop + (父Height - 父paddingTop -父paddingBottom - 子Height) / 2
RelativeLayout居中逻辑
子Y = (父Height - 子Height) / 2
本文标题:RelativeLayout子View居中的计算不会排除padd
本文链接:https://www.haomeiwen.com/subject/ucpulctx.html
网友评论