android - Removing space between recyclerview items -


i have searched around , mention changing layout_height wrap_content mine in wrap_content. can't identify error. welcome. in advance!

screenshot of problem

<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" tools:context="com.fyp.ipptapp.ui.standardfragment">  <relativelayout     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="horizontal">      <linearlayout         android:id="@+id/test"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:orientation="horizontal">          <linearlayout             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:orientation="vertical">              <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:padding="15dp"                 android:text="age" />              <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:padding="15dp"                 android:text="gender" />         </linearlayout>          <linearlayout             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:orientation="vertical">              <spinner                 android:id="@+id/spinner_age"                 android:layout_width="wrap_content"                 android:layout_height="36dp"                 android:layout_margin="5dp"                 android:dropdownwidth="50dp" />              <spinner                 android:id="@+id/spinner_gender"                 android:layout_width="wrap_content"                 android:layout_height="36dp"                 android:layout_margin="5dp"                 android:dropdownwidth="50dp" />          </linearlayout>          <linearlayout             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:orientation="vertical">              <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:padding="15dp"                 android:text="voc" />              <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_alignparentstart="true"                 android:layout_alignparenttop="true"                 android:padding="15dp"                 android:text="pop gp" />          </linearlayout>          <linearlayout             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:orientation="vertical">              <spinner                 android:id="@+id/spinner_voc"                 android:layout_width="wrap_content"                 android:layout_height="36dp"                 android:layout_margin="5dp"                 android:dropdownwidth="200dp" />              <spinner                 android:id="@+id/spinner_popgp"                 android:layout_width="wrap_content"                 android:layout_height="36dp"                 android:layout_margin="5dp"                 android:dropdownwidth="120dp" />          </linearlayout>     </linearlayout>      <linearlayout         android:id="@+id/linearlayout2"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_below="@id/test"         android:orientation="horizontal">          <textview             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:padding="15dp"             android:text="exemption" />          <checkbox             android:id="@+id/pushup"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="push up" />          <checkbox             android:id="@+id/situp"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:text="sit up" />     </linearlayout>      <linearlayout         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_below="@+id/linearlayout2">          <android.support.v7.widget.recyclerview             android:id="@+id/recyclerview"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_below="@+id/linearlayout2" />      </linearlayout> </relativelayout> 

in adapter xml parent layout height might set match_parent. check once


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -