title: DividerItemDecoration not showing up android
body: <p>I have this simple layout for recycler view items.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/details"
  android:layout_width="match_parent"
  android:layout_height="?android:attr/listPreferredItemHeight"
  android:background="?android:attr/selectableItemBackground"
  android:paddingEnd="15dp"
  android:paddingStart="15dp"
  &gt;
  
  &lt;org.tchouaffe.ftinfosystem.utils.CustomTextView
      android:id="@+id/name"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:gravity="center_vertical"
      android:textColor="@color/primaryTextColor"
      android:textSize="15sp"/&gt;
  
  
  &lt;org.tchouaffe.ftinfosystem.utils.CustomTextView
      android:id="@+id/level"
      android:layout_width="wrap_content"
      android:layout_height="match_parent"
      android:layout_alignParentRight="true"
      android:layout_toRightOf="@id/name"
      android:gravity="center_vertical|right"
      android:textColor="@color/primaryTextColor"
      android:textSize="15sp"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>And the following code does sets up the recycler view:</p>
  
  <pre><code> RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.recyclerview);
      LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());
      MyAdapter adapter = new MyAdapter(activity, elementList);
      adapter.setHasStableIds(true);
      DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(recyclerView
              .getContext(), DividerItemDecoration.VERTICAL);
      recyclerView.addItemDecoration(dividerItemDecoration);
      recyclerView.setHasFixedSize(false);
      recyclerView.setLayoutManager(layoutManager);
      recyclerView.setAdapter(adapter);
  </code></pre>
  
  <p>For an unknown reason the divider is not showing up.
  Any ideas?</p>
  
  <p>I am using <code>android.support.v7.widget.DividerItemDecoration</code>.</p>
  
  <p>Thanks</p>