I have very simple layout where I use new android.support.design.widget.TextInputLayout
view from Design Support Library
getColor crashes, you can try two things:
1.Instead of using EditText, use android.support.v7.widget.AppCompatEditText. For example:
2.If that doesn't help, this might, but it will remove the color of your hint when the input field is selected. Add:
app:hintTextAppearance="@android:style/TextAppearance.Small"
to your TextInputLayout.