首页 > 移动平台 > 详细

学习android文档

时间:2014-04-20 02:45:58      阅读:515      评论:0      收藏:0      [点我收藏+]

follow lesson,

1. 创建一helloworld,运行。fragment_main.xml里默认是relativeLayout和Textview

2. 创建第一个图形界面,主要是说fragment_main.xml里放各种元素的位置,布局等,比如button,TextView等

图形化的用了LinearLayout,取代RelativeLayout

可编辑的文本框是<EditText>

<EditText android:id="@+id/edit_message"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send" />

res里设计显示的图片啦,文字啦等,这里在res/value/strings.xml中加入了fragment_mail里定义的button显示的文字,编辑框默认输入文字等

 

 

学习android文档,布布扣,bubuko.com

学习android文档

原文:http://www.cnblogs.com/ianthe/p/3675793.html

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