1.设置minWidth和minHeight
2.执行measure(0,0)
tv.minWidth=abs(right-left)
tv.minHeight=abs(bottom-right)
addView(tv,generateDefaultLayoutParams())
tv.measure(0,0)
tv.layout(left, top, right, bottom).
1.设置minWidth和minHeight
2.执行measure(0,0)
tv.minWidth=abs(right-left)
tv.minHeight=abs(bottom-right)
addView(tv,generateDefaultLayoutParams())
tv.measure(0,0)
tv.layout(left, top, right, bottom).