我创建的按钮和其他... 但现在,当我想创建一个三个按钮绿,红,蓝,他们没有显示了,我希望他们能够直接将下降Button1的,但他们都没有显示了我希望你能帮助我,这是错误即时得到-xml文件必须启动,误差在最后的最后的最后的LinearLayout创建一个新的线性布局
这显示了相同的实体内端与
的代码有问题即时通讯<?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="vertical" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical" >
<TextView
android:id="@+id/secondLine"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/Greetings"
android:textSize="20sp" />
<Button
android:id="@+id/Button1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
</LinearLayout>
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1" >
</RelativeLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="fill_parent"
android:layout_height="20dp"
android:orientation="horizontal" >
<TextView
android:id="@+id/thirdLine"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:layout_gravity="center"
android:background="#ff0000"
android:textColor="#000000"
android:text="red" />
<TextView
android:id="@+id/fourthLine"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:layout_gravity="center"
android:background="#00ff00"
android:textColor="#000000"
android:text="green" />
<TextView
android:id="@+id/fifthLine"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:layout_gravity="center"
android:background="#0000ff"
android:textColor="#000000"
android:text="blue" />
<RelativeLayout
android:id="@+id/relativeLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1" >
</RelativeLayout>
</LinearLayout>
这是红蓝绿色按钮的图片,其中是而我是下来 https://www.dropbox.com/s/73grdc0iff3ql3u/Untitled.png
这就是我伸手到现在,但我希望他们能均匀地分布情况与上图 https://www.dropbox.com/s/73grdc0iff3ql3u/Untitled.png
你想要什么? – Andrain
你可以发布你想要的屏幕截图吗? – Piyush
我希望它像这张照片中的那个我有按钮和工作只有按钮的词是下来,而我需要他们这样https://www.dropbox.com/s/73grdc0iff3ql3u/Untitled.png –