This is a simple wrapper View for the new TextInputLayout from Design Library.
Normaly you use the TextInputLayout like this
<android.support.design.widget.TextInputLayout
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hintTextAppearance="@style/TextAppearance.AppCompat">
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_password"/>
</android.support.design.widget.TextInputLayout>
So you have a fully "blow up" layout file. TextInputLayoutWrapperView fix this.
You only need to put the files below into the specific folders.
- TextInputLayoutWrapperView into your.package.name
- attrs.xml into values/
- text_input_layout_wrapper_view into layout/
You can now use your the Wrapper
<your.package.name.TextInputLayoutWrapperView
android:id="@+id/dienstnehmer_name_et"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:hint="@strings/hint" />
Nope :)