has been to Android:layout_height, Android:layout_width, Android:height, android:width These properties of the relationship some do not understand, since there is android:layout_ Why do height and android:layout_width have android:height, android:width? Search on the internet for a long time to find are repeating a word of nonsense, this afternoon to take a good study of the next found only Android:layout_height and android:layout_width value is wrap_content when the corresponding Android: Height, android:width function, namely:Android:layout_height and Android:layout_width value is wrap_content, the final size of the control is by Android: Height, android:width, and the minimum height android:minheight and minimum width of the control are determined by the maximum value android:minwidth both . Assuming that Android:height is 20px and the minimum height of the control is Android:minheight 30px, the height of the control is 30px when Android:layout_height is wrap_content.
When the values of Android:layout_height and android:layout_width are match_parent or specific values (such as 50DP, 60px, 30SP, etc.),android:height, Android:width is not working.
The relationship and difference between android:layout_height, Android:layout_width, Android:height and Android:width