搜尋此網誌

2014年9月21日 星期日

【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)
  • 用一張圖來說明:





    沒有留言: