0
아이스크림 샌드위치를 실행 중입니다.ListView에서 오버 스크롤 방지
나는 다음 내 레이아웃에 있습니다
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/caption" />
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never"
android:id="@+id/itemized_list" />
</LinearLayout>
다음으로는 ArrayAdapter와를 사용하여 목록 및 목록 항목에 대해 다음 레이아웃을 채울 수 :
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/bulletpoint" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:id="@+id/itemized_list_item_text" />
</LinearLayout>
렌더링 잘입니다 - 목록보기를 해당 항목이 화면에 맞게 렌더링됩니다. 그러나 listView.scrollBy
으로 전화를 걸면 콘텐츠가 끝나는 곳을 스크롤 할 수 있으며 제약없이 "외부 공간"으로 이동할 수 있습니다. 이 문제를 어떻게 방지 할 수 있습니까?