21

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.

user862268
  • 456
  • 1
  • 4
  • 7

1 Answers1

25

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"
Khawar
  • 5,197
  • 4
  • 28
  • 52