XML code----
<TextView
android:text="DOGS"
android:layout_width="0dp"
android:layout_height="0dp"
android:textSize="24sp" />
XML code----
<TextView
android:text="DOGS"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="24sp" />
when layout_height set 0dp produces the result which would be prouduce when layout_height set to wrap_content and its same for width as well. if both produces the same then why need the other.