나는 다음과 같은 XML을 가지고 스크롤 동작을 오버라이드 (override) 공상 아무것도하고 있지 않다 응답하지 : 임베디드 목록보기가 프레스 긴 프레스에 응답 않지만,있는 ScrollView가
<?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" >
<ScrollView
android:id="@+id/myscrollview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:layout_weight="1">
<ListView
android:id="@+id/mylistview"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</ScrollView>
<TextView
android:id="@+id/my_empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="@string/my_foo"
android:gravity="center"
android:visibility="gone"
/>
</LinearLayout>
그러나을은 스크롤되지 않습니다. 내가 도대체 뭘 잘못하고있는 겁니까?
마지막 TextView는 listview의 emptyview입니다.
당신은 모두 내 눈에 승자입니다. – SapphireSun