在下面的代码中,Android studio提示
Layout weights require a widget to be measured twice. When a LinearLayout
with non-zero weights is nested inside another LinearLayout with non-zero
weights ,then the number of measurements increases exponently.
这要怎么改?
//这段是从一段里截取的
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1">
<Button
android:layout_width="0dp"
android:layout_height="fill_parent"
android:text="@string/again"
android:id="@+id/again"
android:layout_weight="1"/>
<Button
android:layout_width="0dp"
android:layout_height="fill_parent"
android:text="@string/confirm"
android:id="@+id/confirm"
android:layout_weight="1" />
</LinearLayout>