导读:layout_weight的权重不是指父控件的权重,而是指父控件的空间按子控件大小分配完后剩余空间的权重。 直接上代码上图了...
layout_weight的权重不是指父控件的权重,而是指父控件的空间按子控件大小分配完后剩余空间的权重。
直接上代码上图了
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >