для правильного поведения веса.

я проверяю дизайн для этого кода. этот WeightSum действует совершенно противоположно тому, как я хочу. когда я устанавливаю свою кнопку weightSum для 70, это требует 30 (общий вес 100 - наоборот).

  <LinearLayout
         android:weightSum="100"
         android:layout_width="fill_parent"
         android:layout_height="wrap_content"
         android:orientation="horizontal"
         >

             <Button
                 android:layout_weight="70"
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:text="Button" />

             <ToggleButton
                 android:layout_weight="30"
                 android:layout_width="fill_parent"
                 android:layout_height="wrap_content"
                 android:text="ToggleButton" />


    </LinearLayout>

Ответы на вопрос(5)

Ваш ответ на вопрос