- XML code
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="#FF9E3E" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:text="用户注册" android:textColor="#000000" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginTop="50dip" android:text="猴子" android:textColor="#000000" /> </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" > </LinearLayout> </LinearLayout>
我想要“用户注册”和“用户登录”在同一行,而同时保证“猴子”和“用户注册”在同一列(现在这个是对的),怎么改啊
------解决方案--------------------
用相对布局啦
------解决方案--------------------
用TableRow