JonnyZaggi February 2016

How can I make my RecyclerView behind a FloatingActionsMenu fully scrollable?

I have written this app that shows Bus routes at my university. The App itself is working fine but there is a problem with the Layout: Not all of my RecyclerView is scrollable, as you can see in this picture. The green square is scrollable, but the red one does not scroll, even if the FloatingActionsMenu is no expanded.

The FloatingActionsMenu is made with this library.

The XML-Code for the RecyclerView and the FloatingActionsMenu is:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:background="@drawable/aachen_background">

....

<android.support.v7.widget.RecyclerView
        android:duplicateParentState="true"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/multi_cards"
        android:layout_below="@id/maincard" />


       <com.getbase.floatingactionbutton.FloatingActionsMenu
           android:id="@+id/action_button"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:clickable="true"
           fab:fab_addButtonColorNormal="@color/fab_color"
           app:fab_addButtonColorPressed="@color/fab_color"
           fab:fab_addButtonPlusIconColor="@color/black_semi_transparent"
           fab:fab_addButtonSize="normal"
           fab:fab_labelsPosition="left"
           fab:fab_labelStyle="@style/menu_labels_style"
           app:fab_addButtonStrokeVisible="false"
           android:layout_alignParentBottom="true"
           android:layout_align        

Answers


Shayan_Aryan February 2016

What about removing this line from your FloatingActionsMenu?:

android:clickable="true"


Igor Monochkov February 2016

Try set main layout as frame. Try this:

<FrameLayout>

    <LinearLayout>

        <CardView />

        <RecyclerView />

    </LinearLayout>

    <FloatingActionsMenu />

</FrameLayout>

Post Status

Asked in February 2016
Viewed 3,728 times
Voted 14
Answered 2 times

Search




Leave an answer