I'm trying to figure out why this LinearLayout is not scrolling:
<ScrollView
android:layout_width="match_parent"
android:fillViewport="true"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/linearLayout"
android:orientation="vertical"
android:weightSum="2"
android:gravity="center_horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="35dp"
android:text="TITLE 1"
android:textSize="30sp" />
<ListView
android:id="@+id/listView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20sp" />
</LinearLayout>
</ScrollView>
I'm adding programmatically a textView and a listView to the linearLayout, and the page is cut in half. The only things scrolling are the listViews.
I don't need the listViews to be scrollable, I only want the entire linearLayout scrollable.