title: set error TextInputLayout in Fragment
body: <p>I have an issue with TextInputLayout when I set the error message. I'm using the following package 'com.android.support:design:23.1.1' in a Fragment.
  This is the code</p>
  
  <pre><code>if (tvName.getText().toString().trim().isEmpty()) {
          textInputLayoutName.setErrorEnabled(true);
          textInputLayoutName.setError("erreur");
      }
  </code></pre>
  
  <p>the XML part </p>
  
  <pre><code>       &lt;android.support.design.widget.TextInputLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:theme="@style/TextLabel"
              android:id="@+id/input_layout_name"&gt;
              &lt;EditText
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:id="@+id/name"
                  android:hint="@string/name"/&gt;
          &lt;/android.support.design.widget.TextInputLayout&gt;
  </code></pre>
  
  <p>The style </p>
  
  <pre><code> &lt;style name="TextLabel" parent="TextAppearance.AppCompat"&gt;
      &lt;item name="android:textColorHint"&gt;@android:color/darker_gray&lt;/item&gt;
      &lt;item name="android:textSize"&gt;20sp&lt;/item&gt;
      &lt;item name="colorAccent"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="colorControlNormal"&gt;#2E7D32&lt;/item&gt;
      &lt;item name="colorControlActivated"&gt;#1B5E20&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>and here the error </p>
  
  <pre><code>   FATAL EXCEPTION: main
     Process: com.example.adama.findmypharmacie, PID: 21169
     java.lang.UnsupportedOperationException: Can t convert to color: type=0x2
     at android.content.res.TypedArray.getColor(TypedArray.java:327)
     at android.widget.TextView.&lt;init&gt;(TextView.java:695)
     at android.widget.TextView.&lt;init&gt;(TextView.java:637)
     at android.widget.TextView.&lt;init&gt;(TextView.java:633)
     at android.support.design.widget.TextInputLayout.setErrorEnabled(TextInputLayout.java:380) 
     at android.support.design.widget.TextInputLayout.setError(TextInputLayout.java:425)
     at com.example.adama.findmypharmacie.fragments.MainFragment.onClick(MainFragment.java:185)
     at android.view.View.performClick(View.java:4463)
     at android.view.View$PerformClick.run(View.java:18789)
     at android.os.Handler.handleCallback(Handler.java:808)
     at android.os.Handler.dispatchMessage(Handler.java:103)
     at android.os.Looper.loop(Looper.java:193)
     at android.app.ActivityThread.main(ActivityThread.java:5299)
     at java.lang.reflect.Method.invokeNative(Native Method)
     at java.lang.reflect.Method.invoke(Method.java:515)
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
     at dalvik.system.NativeStart.main(Native Method)
  </code></pre>