【Android】FILL_PARENT 和 WRAP_CONTENT 的差別
FILL_PARENT (renamed MATCH_PARENT in API Level 8 and higher), which means that the view wants to be as big as its parent (minus padding)
WRAP_CONTENT, which means that the view wants to be just big enough to enclose its content (plus padding)
用一張圖來說明:
沒有留言:
張貼留言