What is difference between Wrap_content and Match_parent?

What is difference between Wrap_content and Match_parent?
Answer
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) an exact number.
 

Tìm kiếm

Back
Top