What is the difference between fill_parent and wrap_content?

Asked 2 years ago, Updated 2 years ago, 129 views

What is the difference between fill_parent and wrap_content?

user-interface android layout

2022-09-22 10:44

1 Answers

It is used to fill all the lengths that parents have. In other words, the length of the container taking the corresponding layout is filled in all.

Use only the length required to allow the view to be drawn. In this case, absolute values can also be included, such as 10px, 10dp, and 10sp, and you can specify the length value directly by using numbers and units.


2022-09-22 10:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.