这是我的代码,我尝试了很多方法来设置按钮相邻,但他们没有工作。将按钮放在一起
我真的会赞赏你的帮助。
<?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="wrap_content"
android:orientation="vertical" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_alignParentLeft="true" />
<Button
android:id="@+id/button2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
请做它android:orientation =“horizontal” –
除非您更精确地定义'next next',否则这是无法回答的问题 – NickT
以及您在布局中所做的一切以及需要并排排列的所有东西吗? –