20

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
  • 416
  • 1
  • 4
  • 7

1 Answers1

24

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,147
  • 4
  • 26
  • 51