i have the following layout:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.example.mkallingal.freakingnav.CardsListFragment">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/darktext"
android:layout_marginBottom="6dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Cards Listing" />
<android.support.v7.widget.RecyclerView android:layout_height="match_parent" android:layout_width="match_parent" android:id="@+id/rvCardsList"
android:scrollbars="vertical" tools:listitem="@layout/recycler_item_layout">
</android.support.v7.widget.RecyclerView>
</LinearLayout>
the problem is that the TextView is always sticky on the top, while RecyclerView takes the remaining space on the screen. I can horizontal scroll the recyclerview, but the TextView just stay there. How do i resolve this?