Я пытаюсь разделить интерфейс фрагмента на два раздела, левая половина будет статическим представлением изображения, а правая половина будет прокруткой, чтобы отобразить динамический список. Я имею следующую структуру `ScrollView рядом со статическим элементом Layout Element in landscape View
<android.support.design.widget.AppBarLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
app:layout_scrollFlags="scroll|enterAlways"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
android:id="@+id/appBarLayout">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@color/primaryText">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="fill_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/primary"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
<LinearLayout
android:id="@+id/image_preview"
android:layout_below="@id/toolbar"
android:layout_width="wrap_content"
android:layout_height="fill_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="#50000000" />
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</LinearLayout>
<ScrollView
android:id="@+id/scroll_view"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_below="@id/toolbar"
android:layout_toEndOf="@id/image_preview">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
</RelativeLayout>
</android.support.design.widget.AppBarLayout>
`
Проблема заключается в том, что я не могу получить ScrollView для прокрутки, даже установив высоту программно не имеет никакого эффекта и Scrollview показывает только элементы списка, которые подходят к экрану
, потому что ваш вид прокрутки содержит ListView, ListView имеет свое собственное поведение прокрутки – Pavan
Вы уверены, что эта вещь компилирует? –