title: Cannot use TextInputLayout in Fragment
body: <p>I cannot seem to be able to use TextInputLayout in fragment. Here is my code.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:orientation="vertical"
      android:gravity="center_horizontal"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".LoginFragment"&gt;
  
      &lt;android.support.design.widget.TextInputLayout
          android:id="@+id/email_layout"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;android.support.design.widget.TextInputEditText
              android:id="@+id/email"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:hint="email"
              android:inputType="textEmailAddress"
              android:maxLines="1" /&gt;
  
      &lt;/android.support.design.widget.TextInputLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>When I try to run I get this exception</p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.design.widget.TextInputLayout"
  </code></pre>
  
  <p>I red this <a href="https://stackoverflow.com/questions/30711813/android-design-support-library-with-theme-material">post</a> which says I should use <code>AppCompat Theme</code> and I am using <code>AppCompat Theme</code></p>
  
  <p>Here is my Theme</p>
  
  <pre><code>&lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>