2012-04-20 15 views

答えて

1
<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical" android:layout_width="fill_parent" 
android:layout_height="fill_parent"> 
<EditText id ="@+id/edittext1" 
android:text="EditText 1" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
/> 
<ScrollView android:layout_width="fill_parent" 
    android:layout_height="fill_parent"> 
<LinearLayout 
    android:orientation="vertical" android:layout_width="fill_parent" 
    android:layout_height="fill_parent"> 
<CheckBox android:id="@+id/check" android:layout_width="wrap_content" 
    android:layout_height="wrap_content" android:text="@string/checkboxtest"/> 
<CheckBox android:id="@+id/check" android:layout_width="wrap_content" 
    android:layout_height="wrap_content" android:text="@string/checkboxtest"/> 
<CheckBox android:id="@+id/check" android:layout_width="wrap_content" 
    android:layout_height="wrap_content" android:text="@string/checkboxtest"/><CheckBox android:id="@+id/check" android:layout_width="wrap_content" 
    android:layout_height="wrap_content" android:text="@string/checkboxtest"/> 
</LinearLayout> 
</ScrollView> 
</LinearLayout> 
+0

をscrollviewするために、すべてのコンポーネントを追加... – MAC

1

あなたの努力のためにあなたに同じ

<ScrollView....> 
<LinearLayout..> 
    <EditText /> 
    <CheckBox /> 
    <CheckBox /> 
    <CheckBox /> 
    <CheckBox /> 
    . 
    . 
    </LinearLayout..> 
</ScrollView> 
+0

のthnx、私たちはすべてのコードをコピーN貼り付ける必要がありますとは思わない...彼/彼女これで理解できる... – MAC

関連する問題