Android 学习笔记(一): 基本控件
3080 点击·0 回帖
![]() | ![]() | |
![]() | [html] <pre name="code" class="html"><?xml version="1.0" 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> ![]() 摘自 柒尐狐的专栏 | |
![]() | ![]() |