开发者

What does layout_height="0dp" mean? [duplicate]

This question already has answers here: In android layouts what is the effect/meaning of layout_height="0dip" (4 answers) 开发者_Python百科 Closed 10 years ago.

I looked at lot of places where layout_height="0dp" used. Can someone tell me what does it mean? I tried looking at android developer docs and did not find relevant information there.

Thanks.


Well, height or width when set to "0dp", are mostly used in combination with "weight". e.g. you want to fill all the available space for height:

android:layout_height = "0dp"
android:layout_weight = "1.0"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜