하이 에드 Sehu Mujammil A,
당신은 당신의 목표를 달성하기 LinearListViewlibrary 활용할 수 있습니다. 이 라이브러리를 사용하면 LinearLayout에 바인딩하는 ListAdapter를 작성할 수 있습니다. 그런 다음이 "ListView"(ScrollView 내에서 실제로 ListView가 아님)를 넣을 수 있습니다. 그러면 전체 레이아웃이 원하는대로 스크롤 할 수 있습니다.
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- Your Title and other stuff in the green section here -->
</LinearLayout>
<com.linearlistview.LinearListView
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_linear_list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:showDividers="none|middle|beginning|end"
android:divider="#488888"
android:dividerPadding="2dp"
app:dividerThickness="2dp"
/>
</ScrollView>
그런 다음 보통의 ListView 같은 BaseAdapter 또는 ListAdapter (당신이 당신의 getView() 메소드를 최적화해야합니다)와 LinearListView을 처리 할 수 있습니다 :이 같은 설정보기를 할 수 예를 들어
. 여기서주의해야 할 점은이 라이브러리는 선형 레이아웃을 사용하고 많은 요소를로드하면 UI 스레드를 잠글 수 있다는 것입니다 (ListView와는 달리 오브젝트를 안팎으로로드합니다). getView() 및 notifyDatasetChange() 메소드를 현명하게 처리하여 초기로드 (IE : 데이터를로드하는 데 도움이되는 ExecutorThreadPools가있는 AsyncTasks 등)를보다 효과적으로 최적화 할 수 있습니다.
도움이 되었기를 바랍니다.
-evan