title: How to design floating action button with label on it?
body: <p><a href="https://i.stack.imgur.com/j9ucV.png" rel="nofollow noreferrer">click here for the image</a></p>
  
  <p>I am trying to design floating action button with number label on it. But when text is being displayed on the label it is hiding behind the cart <code>FloatingActionButton</code>.</p>
  
  <pre><code>&lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_alignParentBottom="true"
              android:layout_alignParentEnd="true"
              android:orientation="horizontal"&gt;
  
              &lt;android.support.design.widget.FloatingActionButton
                  android:id="@+id/add_to_cart_floating_action_button"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_margin="@dimen/fab_margin"
                  android:elevation="5dp"
                  android:src="@drawable/cart2"
                  app:backgroundTint="@color/colorPrimaryDark"
                  app:borderWidth="0dp"
                  app:fabSize="normal" /&gt;
  
              &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_vertical"
                  android:layout_marginStart="-50dp"
                  android:layout_marginTop="15dp"
                  android:layout_toEndOf="@id/add_to_cart_floating_action_button"
                  android:background="@drawable/floating_action_button_label"
                  android:paddingBottom="5dp"
                  android:paddingEnd="5dp"
                  android:paddingStart="20dp"
                  android:paddingTop="5dp"
                  android:text="@string/one"
                  android:textColor="@color/TextcolorforBlack"
                  android:textStyle="bold" /&gt;
  
          &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>floating_action_button_label.xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
     &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="rectangle"&gt;
      &lt;solid android:color="@color/TextcolorforWhite" /&gt;
      &lt;corners
          android:bottomLeftRadius="15dp"
          android:bottomRightRadius="15dp"
          android:topLeftRadius="15dp"
          android:topRightRadius="15dp" /&gt;
  &lt;/shape&gt;
  </code></pre>