title: Parent view is overlapped by child view
body: <p>I am developing an Android application in which I would like to display the GridView using RecyclerView.</p>
  
  <p>I could able to create separate layout for an item and display it in GridView dynamically.But I face an issue in showing tick mark on top right of each item.</p>
  
  <p>The tick mark is hidden by CardView <a href="https://i.stack.imgur.com/zU2wL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zU2wL.png" alt="here"></a></p>
  
  <p>Here is my <strong>item_grid.xml</strong></p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="110dp"
      android:layout_height="110dp"&gt;
  
      &lt;android.support.v7.widget.CardView
          android:id="@+id/cardView2"
          android:layout_width="100dp"
          android:layout_height="100dp"
          android:layout_marginTop="10dp"
          android:elevation="@dimen/activity_horizontal_margin"&gt;
  
          &lt;ImageView
              android:id="@+id/image_hobby_bg"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_margin="10dp"
              android:src="@drawable/cycling" /&gt;
  
  
          &lt;TextView
              android:id="@+id/text_hobby_name"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom"
              android:background="@color/colorAccent"
              android:gravity="center"
              android:padding="3dp"
              android:paddingBottom="15dp"
              android:paddingTop="15dp"
              android:text="CYCLING"
              android:textColor="@android:color/white"
              android:textSize="12sp"
              android:textStyle="bold" /&gt;
  
  
      &lt;/android.support.v7.widget.CardView&gt;
  
      &lt;ImageView
          android:id="@+id/image_hobby_selected_icon"
          android:layout_width="20dp"
          android:layout_height="20dp"
          android:layout_gravity="top|right"
          android:adjustViewBounds="true"
          android:src="@drawable/all_checked_round" /&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>I have tried <code>bringToFront()</code> method but it is not working.</p>
  
  <pre><code>  viewHolder.checkMark.bringToFront();
          ((View) viewHolder.checkMark.getParent()).invalidate();
          (viewHolder.checkMark.getParent()).requestLayout();
  </code></pre>
  
  <p>Please help me find the solution.</p>