反正Android
中有沒有設置LinearLayout
的高度以匹配它的寬度?Android Layout match_width
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="MATCH_WIDTH_OF_THIS_LinearLayout"
我有LinearLayout
到match_parent
的寬度,我想這LinearLayout
爲它的高度匹配它自己的寬度。
不能看到[LinearLayout.LayoutParams]該參數(https://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html) – Onik