3.用户接口UI布局----View控件的概述之TextView
摘要:
TextView(view 子类)----控件能向用户展现文本信息//在程序中创建TextView对象TextViewtv=new TextView(this);tv.setText("你好");setContentView(tv);//在XML布局文件中使用----通过解析xml文件构造view类设置字体的大小推荐使用sp作为单位android:layout_width="wrap_content" android:layout_height="fill_parent"android:height设置文本区域的高度,支持度量单位:p 阅读全文
posted @ 2012-07-21 14:00
SuperbookKing
阅读(228)
评论(0)
推荐(0)