秀气龙

专心、专注、努力

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2011年11月9日

摘要: Toast的功能是提示功能。Toast.makeText(this, "Toast测试", Toast.LENGTH_LONG).show();EditText的使用方法在布局文件中添加<EditText android:id="@+id/myedit" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="测试EditText" />以上是EditText的使用方法 阅读全文
posted @ 2011-11-09 14:35 秀气龙 阅读(254) 评论(0) 推荐(0)

摘要: TextView控件是一个文本控件,用来显示一个文本标签的控件。下面用一段代码来演示一下TextView的使用方法XML布局文件<!-- 设置显示的文本控件 --> <TextView android:id="@+id/mytextview" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/text" />源码文件public class TextVie 阅读全文
posted @ 2011-11-09 03:44 秀气龙 阅读(209) 评论(0) 推荐(0)