天天看點

擷取元件高度

第一步<code>measure</code>

第二步現在你可以使用寬度<code>getMeasuredWidth</code>和高度使用<code>getMeasuredHeight</code>