title: How Remove Recycler Separator/divider programmatically or using xml property
body: <p>i am developing a grid cardview using recyclerview and card view in android v25 , facing  behavior of Android recycler view has a divider line that acts as a separator between two rows as shown in the below image</p>
  
  <p><img src="https://i.stack.imgur.com/reZvQ.png" alt="Screen shot from emulator "></p>
  
  <p>I want to remove this line ,i am attaching my layout XMLS and java codes here</p>
  
  <p><strong>MainActivity.java</strong></p>
  
  <pre><code>  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      recyclerView = (RecyclerView) findViewById(R.id.recycler_view);
      categoriesAdapter = new RecyclerViewAdapter(getApplicationContext(),getAllItemList());
  
      recyclerView.setHasFixedSize(true);
  
      RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
      // set a GridLayoutManager with default vertical orientation and 3 number of columns
      GridLayoutManager gridLayoutManager = new GridLayoutManager(getApplicationContext(),3);
      recyclerView.setLayoutManager(gridLayoutManager);
      recyclerView.addItemDecoration(new DividerItemDecoration(this,  LinearLayoutManager.VERTICAL));
      recyclerView.setItemAnimator(new DefaultItemAnimator());
      recyclerView.setAdapter(categoriesAdapter);
  
      getAllItemList();
  }
  </code></pre>
  
  <p><strong>main_card_grid.xml</strong></p>
  
  <pre><code>&lt;android.support.v7.widget.CardView
  xmlns:card_view="http://schemas.android.com/apk/res-auto"
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/card_view"
  android:layout_width="120dp"
  android:layout_height="wrap_content"
  card_view:cardUseCompatPadding="true"
  card_view:cardCornerRadius="2dp"
  android:layout_marginBottom="16dp"&gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;ImageView
          android:id="@+id/country_photo"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
  
          android:contentDescription="@string/action_settings"
          android:src="@drawable/eight"
          android:scaleType="centerCrop" /&gt;
  
      &lt;TextView
          android:id="@+id/country_name"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:textSize="13sp"
          android:text="@string/country_name"
          android:textColor="@color/textColor"
          android:gravity="center"
          android:layout_below="@+id/country_photo"
          android:paddingBottom="4dp"
          android:paddingTop="4dp"
          android:layout_alignParentBottom="true"
          android:background="@color/white"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>content_main.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context="groups.wtz.bluewine.com.miyo.MainActivity"
      tools:showIn="@layout/app_bar_main"&gt;
  
      &lt;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:background="@color/white"
          android:orientation="vertical"&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:padding="4dp"
              tools:context=".MainActivity"&gt;
  
              &lt;android.support.v7.widget.RecyclerView
                  android:id="@+id/recycler_view"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                   /&gt;
  
          &lt;/RelativeLayout&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>which portion of xml is making this underline ,can i update it</p>