首页 > 其他 > 详细

main.xml注释

时间:2014-10-20 13:10:29      阅读:275      评论:0      收藏:0      [点我收藏+]

<?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"> //此布局管理器的屏幕高度,现在为手机高度  <TextView//此为文本显示组件,显示提示信息的     android:layout_width="fill_parent" //指的是此组件的宽度为屏幕的宽度

  android:layout_height="wrap_content"//组件的高度为文字的高度     android:text="@string/hello" />//组件的默认显示文字,此时为strings.xml

    <TextView     android:id="@+id/mytext"

  android:layout_width="fill_parent"

  android:layout_height="wrap_content" />

 <Button

  android:id="@+id/mybut"

  android:layout_width="fill_parent"

  android:layout_height="wrap_content" />

</LinearLayout>

main.xml注释

原文:http://www.cnblogs.com/xt027/p/4036857.html

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