SuperbookKing

2012年7月21日

6.用户接口UI布局----View控件的概述之RadioButton和CheckBox

摘要: 1.RadioButton(Button->CompoundButton子类)<RadioGroup xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:layout_weight="1"> &l 阅读全文

posted @ 2012-07-21 22:00 SuperbookKing 阅读(218) 评论(0) 推荐(0)
5.用户接口UI布局----View控件的概述之Button

摘要: Button(textview 子类)----控件能向用户展现文本信息// With text<Button android:layout_width="wrap_content"android:layout_height="wrap_content"android:text="@string/button_text" ... />// Withan icon ( ImageView 子类)<ImageButtonandroid:layout_width="wrap_content"android 阅读全文

posted @ 2012-07-21 19:43 SuperbookKing 阅读(155) 评论(0) 推荐(0)
4.用户接口UI布局----View控件的概述之EditText

摘要: 1.EditText(textview 子类)----控件能向用户展现文本信息//在XML布局文件中使用android:singleLine="false" 设置多行android:maxLength="3"限制输入字符数量android:hint="@string/hello"设置提示信息android:inputType="phone"限制EditText输入信息android:drawableLeft="@drawable/title"在EditText中显示图片android:backg 阅读全文

posted @ 2012-07-21 14:52 SuperbookKing 阅读(317) 评论(0) 推荐(0)
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)