I mean why anybody want they view to be 0dip height ? I have seen this many times, there must be some kind of trick, but I do not get it.
The android:layout_height="0dp" is used in various codes because:
e.g:
android:layout_height = "0dp"
android:layout_weight = "1.0"
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 then use the above code and like wise the same case for width.