首页 > 其他 > 详细

LinearLayout练习

时间:2016-03-26 10:35:25      阅读:146      评论:0      收藏:0      [点我收藏+]
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="To"
            />



        <EditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="Subject"/>



        <EditText
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:text="Message"
            android:gravity="top"
            android:layout_weight="1"/>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal">
        <Button
            android:layout_width="260dp"
            android:layout_height="wrap_content"
            android:text="确定"
            android:layout_weight="1"
            />
        <Button
            android:layout_width="260dp"
            android:layout_height="wrap_content"
            android:text="取消"
            android:layout_weight="1"/>
    </LinearLayout>
</LinearLayout>

技术分享

LinearLayout练习

原文:http://www.cnblogs.com/youshashuosha/p/5321946.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!