我想添加水平LinearLayout
编程的第一个孩子宽度,确保老二的LinearLayout - 使基于第二
通吃的宽度需要与第一个孩子将剩下的全部空间。
我没有要添加的代码,因为我尝试了很多选项,而且还没有任何工作。
有什么想法吗?
我想添加水平LinearLayout
编程的第一个孩子宽度,确保老二的LinearLayout - 使基于第二
通吃的宽度需要与第一个孩子将剩下的全部空间。
我没有要添加的代码,因为我尝试了很多选项,而且还没有任何工作。
有什么想法吗?
尝试这种变化的BUTTON3
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal"
android:weightSum="1.0" >
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Back" />
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Read sad s as d" />
</LinearLayout>
给予第二个孩子的挥舞1给第一个孩子分配什么分量 –
?以及放在LayoutParams上的内容? – piojo