0
레이아웃 상단에는 textview, button 및 imageview..etc 요소가 있지만 부분에는 목록보기가 있습니다. 우리가 스크롤 할 때 최상위 요소는 listview에서도 스크롤해야합니다. 상대적 레이아웃과 scrollview android의 listview
하지만 너무
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res/com.revolage.vkcommunity"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/vk_white"
android:orientation="vertical"
tools:context="com.egay.borsh.fragments.MainActivity" >
<RelativeLayout
style="@style/ActionBarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin" >
<RelativeLayout
android:id="@+id/action_bar_relative_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin" >
......
</RelativeLayout>
<com.costum.android.widget.PullAndLoadListView
android:id="@+id/main_post_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/header_linear_layout" />
</RelativeLayout>
, 아무것도 스크롤되지 않습니다.
'ListView'에 이미 스크롤 메카니즘이 있으므로'ListView'를'ScrollView' 안에 두지 마십시오. –