黑马程序员技术交流社区

标题: android用户人机界面开发问题求指教 [打印本页]

作者: a6566983    时间: 2014-10-26 09:09
标题: android用户人机界面开发问题求指教
本帖最后由 a6566983 于 2014-10-26 09:10 编辑


用linearlayout怎么才能做到这个样子?

aaaaaaa.png (43.03 KB, 下载次数: 0)

aaaaaaa.png

作者: 游客也爱学    时间: 2014-10-26 09:10
本帖最后由 游客也爱学 于 2014-10-26 09:12 编辑

<?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"
              android:paddingLeft="25dp"
        >
    <LinearLayout android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android: orientation="horizontal"

                  android:layout_marginTop="35dp">
        <TextView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="用户:"
                />
        <EditText android:layout_width="fill_parent"
                  android:layout_height="wrap_content"/>
    </LinearLayout>
    <LinearLayout android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android: orientation="horizontal">
        <TextView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="密码:"
                />
        <EditText android:layout_width="fill_parent"
                  android:layout_height="wrap_content"/>
    </LinearLayout>
    <LinearLayout android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android: orientation="horizontal"
                  android:gravity="center">
        <RadioGroup android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android: orientation="horizontal">
            <RadioButton android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:text="界面1"/>
            <RadioButton android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         android:text="界面2"/>
        </RadioGroup>
    </LinearLayout>
    <Button android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            android:text="确定"/>
</LinearLayout>




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2