TextInputLayout isn't showing
<p>I'm quite new in the world of Android app development. I'm currently trying out some basic things. Currently I'm trying to achieve a floating label like the ones seen in various material design apps.</p>

<p>What I'm trying to do is get a <code>CardView</code> and place a <code>TextInputLayout</code> in that card.</p>

<pre><code>&lt;android.support.v7.widget.CardView
        android:layout_width="310dp"
        android:layout_height="250dp"
        android:layout_below="@+id/textView"
        android:layout_alignRight="@+id/textView"
        android:layout_alignEnd="@+id/textView"
        android:layout_marginTop="13dp" &gt;

        &lt;RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"&gt;
            &lt;android.support.design.widget.TextInputLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"&gt;

                &lt;EditText
                    android:id="@+id/labeltest"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:hint="floating label"/&gt;
            &lt;/android.support.design.widget.TextInputLayout&gt;
        &lt;/RelativeLayout&gt;
    &lt;/android.support.v7.widget.CardView&gt;
</code></pre>

<p>Now when I do this, I get a CardView like I'm supposed to get, but the TextInputLayout doesn't show up. However, I can tap it, after which it focusses and lets me enter text. (see example below)</p>

<p>I would like to add that I'm testing it on a virtual machine, not on an actual device.</p>

<p>Thanks.</p>

<p><a href="https://i.stack.imgur.com/GYS9Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GYS9Y.png" alt="Example 1"></a></p>

<p>Edit: As per request, <code>colors.xml</code></p>

<pre><code>&lt;resources&gt;
    &lt;color name="colorPrimary"&gt;#E43F3F&lt;/color&gt;
    &lt;color name="colorPrimaryDark"&gt;#E12929&lt;/color&gt;
    &lt;color name="primary_darker"&gt;#CC1D1D&lt;/color&gt;
    &lt;color name="colorAccent"&gt;#FFFFFF&lt;/color&gt;

    &lt;color name="black"&gt;#000000&lt;/color&gt;
    &lt;color name="jet"&gt;#222222&lt;/color&gt;
    &lt;color name="oil"&gt;#333333&lt;/color&gt;
    &lt;color name="monsoon"&gt;#777777&lt;/color&gt;
    &lt;color name="jumbo"&gt;#888888&lt;/color&gt;
    &lt;color name="aluminum"&gt;#999999&lt;/color&gt;
    &lt;color name="base"&gt;#AAAAAA&lt;/color&gt;
    &lt;color name="iron"&gt;#CCCCCC&lt;/color&gt;
    &lt;color name="white"&gt;#FFFFFF&lt;/color&gt;
    &lt;color name="Trans_text"&gt;#a8ffffff&lt;/color&gt;
&lt;/resources&gt;
</code></pre>