У меня есть макет, который состоит из макета фрейма, имеющего представление изображения (с альфа-каналом) в качестве первого компонента, и относительный макет, содержащий фильтры страниц и расширяемый вид списка.
Проблема заключается в том, чтоВысота заголовка и горизонтального вида рециркулятора составляет около 0,6 от экрана телефона, а расширяемый вид списка находится ниже их, поэтому он перемещается на 0,4 дюйма по высоте, и мне нужно иметь полную раскладку для прокрутки и предоставления расширяемого спискавысоту представления как обтекание содержимого, я помещаю представление прокрутки, но эльв использует прокрутку, и она прокручивается в выделенном пространстве 0,4 высоты.
Вот макет:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:src="@drawable/tree"
android:adjustViewBounds="true"
android:clickable="false"
android:focusableInTouchMode="false"
android:focusable="false"
android:scaleType="fitXY"
android:alpha="@dimen/alpha"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_alignParentLeft="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/semi_circles"/>
<include
android:id="@+id/top"
layout="@layout/top_bar"
android:layout_width="match_parent"
android:layout_height="?android:attr/actionBarSize"/>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_below="@+id/top"
android:layout_above="@+id/llFooter"
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="@+id/llHeader"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include
android:id="@+id/flHeader"
layout="@layout/header_crops_prices_test"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout
android:background="@color/white"
android:layout_width="match_parent"
android:gravity="center_horizontal"
android:layout_height="wrap_content">
<android.support.v7.widget.RecyclerView
android:id="@+id/rvFilter"
android:background="@color/white"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:layout_gravity="center_horizontal"/>
</LinearLayout>
<RelativeLayout
android:id="@+id/rlResultOptions"
android:paddingTop="@dimen/normal_margin_padding"
android:padding="@dimen/normal_margin_padding"
android:layout_width="match_parent"
android:gravity="center_vertical"
android:background="@color/gray"
android:layout_height="@dimen/edit_text_height">
<TextView
android:id="@+id/tvGrp"
android:layout_marginStart="@dimen/normal_margin_padding"
android:layout_marginEnd="@dimen/normal_margin_padding"
android:layout_alignParentBottom="true"
android:gravity="center_vertical"
android:textSize="@dimen/font"
android:textColor="@color/colorPrimary"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/result_grouped_by"/>
<TextView
android:layout_toStartOf="@+id/switchResult"
android:layout_alignParentBottom="true"
android:layout_centerVertical="true"
android:gravity="center_vertical"
android:textSize="@dimen/font"
android:textColor="@color/colorPrimary"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/market"/>
<Switch
android:id="@+id/switchResult"
android:layout_toStartOf="@+id/tvCrop"
android:layout_alignParentBottom="true"
android:gravity="center_vertical"
android:checked="false"
android:textSize="@dimen/font"
android:trackTint="@color/colorPrimaryLight"
android:thumbTint="@color/colorPrimaryDark"
android:textColor="@color/colorPrimary"
android:layout_marginStart="@dimen/small_margin_padding"
android:layout_marginEnd="@dimen/small_margin_padding"
android:layout_width="wrap_content"
android:layout_height="match_parent"/>
<TextView
android:id="@+id/tvCrop"
android:layout_alignParentEnd="true"
android:layout_alignParentBottom="true"
android:layout_centerVertical="true"
android:gravity="center_vertical"
android:textSize="@dimen/font"
android:layout_marginEnd="@dimen/normal_margin_padding"
android:textColor="@color/colorPrimary"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="@string/crop"/>
</RelativeLayout>
<ProgressBar
android:id="@+id/progressBar"
android:indeterminateTint="@color/white"
android:layout_gravity="center_horizontal"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<LinearLayout
android:background="@color/gray"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tvNoData"
android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:gravity="center_horizontal"
android:padding="@dimen/big_margin_padding"
android:text="@string/no_data"
android:textColor="@color/colorPrimaryDark"
android:textSize="@dimen/large_font"/>
<ExpandableListView
android:id="@+id/elvResults"
android:layout_marginStart="@dimen/big_margin_padding"
android:layout_marginEnd="@dimen/big_margin_padding"
android:layout_marginTop="@dimen/big_margin_padding"
android:childDivider="@android:color/transparent"
android:childIndicator="@null"
android:groupIndicator="@null"
android:nestedScrollingEnabled="false"
android:transcriptMode="disabled"
android:divider="@null"
android:dividerHeight="0dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
<include
layout="@layout/footer"
android:id="@+id/llFooter"
android:layout_width="match_parent"
android:layout_height="@dimen/footer_height"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
Чего мне не хватает, помогите