|
<?xml version="1.0" encoding="utf-8"?> |
|
<RelativeLayout |
|
xmlns:android="http://schemas.android.com/apk/res/android" |
|
xmlns:app="http://schemas.android.com/apk/res-auto" |
|
xmlns:tools="http://schemas.android.com/tools" |
|
android:layout_width="match_parent" |
|
android:layout_height="match_parent" |
|
android:paddingBottom="@dimen/activity_vertical_margin" |
|
android:paddingLeft="@dimen/activity_horizontal_margin" |
|
android:paddingRight="@dimen/activity_horizontal_margin" |
|
android:paddingTop="@dimen/activity_vertical_margin" |
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" |
|
tools:showIn="@layout/activity_main"> |
|
|
|
<android.support.design.widget.TextInputLayout |
|
android:id="@+id/first_input_layout" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:hint="@string/text_input_one_hint" |
|
app:errorEnabled="true" > |
|
<android.support.design.widget.TextInputEditText |
|
android:id="@+id/first_edit_text" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:singleLine="true" |
|
android:imeOptions="actionNext" |
|
android:nextFocusDown="@+id/second_edit_text"/> |
|
</android.support.design.widget.TextInputLayout> |
|
|
|
<android.support.design.widget.TextInputLayout |
|
android:id="@+id/second_input_layout" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:layout_below="@id/first_input_layout" |
|
android:hint="@string/text_input_two_hint" |
|
app:errorEnabled="true" > |
|
<android.support.design.widget.TextInputEditText |
|
android:id="@+id/second_edit_text" |
|
android:layout_width="match_parent" |
|
android:layout_height="wrap_content" |
|
android:singleLine="true" |
|
android:imeOptions="actionDone"/> |
|
</android.support.design.widget.TextInputLayout> |
|
|
|
<Button |
|
android:layout_width="wrap_content" |
|
android:layout_height="wrap_content" |
|
android:layout_below="@+id/second_input_layout" |
|
android:text="@string/test_input_error" |
|
android:onClick="clickMethod"/> |
|
</RelativeLayout> |