android 开发之activity之间传递数据
2010-07-05 00:08:00 来源:WEB开发网android:orientation="horizontal"
android:checkedButton="@+id/radio_man"
android:layout_height="wrap_content">
< RadioButton
android:id="@+id/radio_man"
android:text="@string/str_man"
/>
< RadioButton
android:id="@+id/radio_woman"
android:text="@string/str_woman"
/>
< /RadioGroup>
< TextView
android:id="@+id/text_height"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:layout_below="@+id/RadioGroup01"
android:text="@string/str_height"
/>
< EditText
android:id="@+id/text_edit"
android:layout_width="200dip"
android:layout_height="wrap_content"
android:layout_below="@+id/RadioGroup01"
android:layout_toRightOf="@+id/text_height"
android:numeric="decimal"
/>
< Button
android:layout_width="wrap_content"
android:text="@string/str_calc"
android:layout_below="@+id/text_edit"
android:id="@+id/btn_calc"
android:layout_toRightOf="@+id/text_height"
android:layout_height="wrap_content">
< TextView
android:id="@+id/text_cm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/RadioGroup01"
android:textSize="20sp"
android:layout_toRightOf="@+id/text_edit"
android:text="@string/str_cm"
/>
< /RelativeLayout>
----------------result.xml-----------------
< ?xml version="1.0" encoding="utf-8"?>
< LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
更多精彩
赞助商链接