Skip to content Skip to sidebar Skip to footer

Android: Scrollview And Recyclerview

I want to make an app that will list the books of every Writer.The screen has two cardview: The first one with information about the writer and it will have always the same height

Solution 1:

I think what you want to do is inflate different types of views in a RecyclerView rather than making a CardView + RecyclerView. This SO question was very helpful for me to start with.

<?xml version="1.0" encoding="utf-8"?><FrameLayout... ><android.support.v7.widget.RecyclerViewandroid:layout_width="fill_parent"android:layout_height="wrap_content"android:id="@+id/recyclerVolumi" /><com.getbase.floatingactionbutton.FloatingActionsMenuandroid:id="@+id/multiple_actions"><com.getbase.floatingactionbutton.FloatingActionButtonandroid:id="@+id/action_a"/><com.getbase.floatingactionbutton.FloatingActionButtonandroid:id="@+id/action_b"/></com.getbase.floatingactionbutton.FloatingActionsMenu></Frame...>

So the first item of your RecyclerView will have the book details type view and the rest of the items will have list of books type view..

Post a Comment for "Android: Scrollview And Recyclerview"