스크롤보기를 만들려고합니다. 내 응용 프로그램에 텍스트 필드가 있고 키보드를 열면 전체 화면이 위로 이동하고 스크롤하여 화면에 올라가는 것을 볼 수 있습니다.스크롤보기가 제대로 작동하지 않습니다.
내 스크롤보기에는 텍스트 필드와 일부 이미지보기가 화면에 표시됩니다.
다음 높이 당신의linearLayout
의이
match_parent
너무해야 당신이 당신의
ScrollView's
높이를 설정하는 데 필요한 모든의
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical"
android:fillViewport="true"
android:id="@+id/scrollView2" >
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:minHeight="570dp">
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="60dp"
android:layout_marginTop="30dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Total Lives :"
android:id="@+id/textView12"
android:layout_marginTop="8dp"
android:layout_marginLeft="20dp" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/lifeImage1"
android:src="@drawable/full_brain_game" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/lifeImage2"
android:src="@drawable/full_brain_game" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/lifeImage3"
android:src="@drawable/full_brain_game" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/lifeImage4"
android:src="@drawable/full_brain_game" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/lifeImage5"
android:src="@drawable/full_brain_game" />
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/lifeImage6"
android:src="@drawable/full_brain_game" />
</LinearLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/textView7"
android:layout_marginLeft="150dp"
android:textColor="@color/red"
android:layout_marginTop="150dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:src="@drawable/full_brain_game_1" />
</LinearLayout>
</ScrollView>
아무도 나를 위해 일하지 않았습니다. 아무도 모른다면 다른 해결책이 있습니까? –