title: Custom TextView with icon
body: <p>I need to obtain some <code>TextView</code> with a custom icon on them, such as these ones:</p>
  
  <p><img src="https://i.stack.imgur.com/04osO.png" alt="enter image description here"></p>
  
  <p>but I've only been able to do this:</p>
  
  <p><img src="https://i.stack.imgur.com/gVTmK.png" alt="enter image description here"></p>
  
  <p>my 3 <code>TextView</code>:</p>
  
  <pre><code>        &lt;LinearLayout android:id="@+id/info" android:layout_marginTop="80dp"
              android:layout_width="match_parent" android:layout_height="match_parent"
              android:layout_centerHorizontal="true"
              android:orientation="horizontal"
              android:layout_marginEnd="16dp"
              android:layout_marginRight="16dp"
              android:layout_marginLeft="16dp"
              android:layout_marginStart="16dp"&gt;
  
              &lt;TextView android:id="@+id/info_totali" android:clickable="true"
                  android:paddingLeft="10dp" android:paddingRight="10dp"
                  android:paddingTop="8dp" android:paddingBottom="8dp"
                  android:layout_width="0dp" android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:background="@drawable/custom_textview_drawable"
                  android:gravity="center"
                  android:text="Tour totali\n 21"/&gt;
  
              &lt;TextView android:id="@+id/info_prenotabili" android:clickable="true" android:layout_toRightOf="@+id/tour1"
                  android:paddingLeft="10dp" android:paddingRight="10dp"
                  android:paddingTop="8dp" android:paddingBottom="8dp"
                  android:layout_width="0dp" android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:background="@drawable/custom_textview_drawable"
                  android:gravity="center"
                  android:text="Prenotabili\n 16"
                  android:layout_marginLeft="16dp"
                  android:layout_marginStart="16dp" /&gt;
  
              &lt;TextView android:id="@+id/info_preferiti" android:clickable="true" android:layout_toRightOf="@+id/tour2"
                  android:paddingLeft="10dp" android:paddingRight="10dp"
                  android:paddingTop="8dp" android:paddingBottom="8dp"
                  android:layout_width="0dp" android:layout_height="wrap_content"
                  android:background="@drawable/custom_textview_drawable"
                  android:gravity="center"
                  android:layout_weight="1"
                  android:text="Preferiti\n 3"
                  android:layout_marginLeft="16dp"
                  android:layout_marginStart="16dp"/&gt;
          &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><code>custom_textview_drawable</code>: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;item&gt;
          &lt;layer-list&gt;
              &lt;item&gt;
                  &lt;shape android:shape="rectangle"&gt;
                      &lt;!--&lt;solid android:background="?android:attr/selectableItemBackground"/&gt;--&gt;
                      &lt;!--android:color="#ffffff" --&gt;
                      &lt;solid android:color="@color/account_grey_100" /&gt;
                      &lt;stroke android:width="1dip"
                          android:color="@color/account_grey_400"/&gt;
                      &lt;corners android:radius="4dp"/&gt; &lt;!--android:bottomRightRadius="7dp"--&gt;&lt;!--android:bottomLeftRadius="7dp"--&gt;&lt;!--android:topLeftRadius="7dp"--&gt;&lt;!--android:topRightRadius="7dp"/&gt;--&gt;
                  &lt;/shape&gt;
              &lt;/item&gt;
  
              &lt;item&gt;
                  &lt;bitmap android:gravity="top" android:src="@mipmap/ic_events"/&gt;
              &lt;/item&gt;
          &lt;/layer-list&gt;
      &lt;/item&gt;
  
  &lt;/selector&gt;
  </code></pre>