读书人

Android 新手入门(二)-常用控件

发布时间: 2012-07-02 17:46:22 作者: rapoo

Android 新手入门(2)-常用控件

<pre name="code" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical">"     <TextView android:layout_width="wrap_content"          android:layout_height="wrap_content"         android:text="TextView"/>     <Button android:layout_width="wrap_content"          android:layout_height="wrap_content"         android:text="Button" />     <EditText android:layout_width="fill_parent"          android:layout_height="wrap_content"/>     <RadioButton android:layout_width="wrap_content"          android:layout_height="wrap_content"         android:text="RadioButton" />         <CheckBox android:layout_width="wrap_content"          android:layout_height="wrap_content"         android:text="CheckBox" />     <ToggleButton android:layout_width="wrap_content"          android:layout_height="wrap_content"         android:text="ToggleButton" />     <ZoomButton android:layout_width="wrap_content"          android:layout_height="wrap_content"         android:text="ZoomButton" />     <Spinner android:layout_width="match_parent"           android:layout_height="wrap_content" />     <RatingBar android:layout_width="wrap_content"          android:layout_height="wrap_content" />  </LinearLayout> 

?
Android 新手入门(二)-常用控件

读书人网 >Android

热点推荐