Skip to content

Commit

Permalink
Update TextInputLayout usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
eliaslecomte committed Dec 30, 2016
1 parent 6067f50 commit 7edded9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import android.Manifest;
import android.os.Bundle;
import android.support.design.widget.TextInputEditText;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.text.InputFilter;
import android.text.TextUtils;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

Expand All @@ -30,15 +30,15 @@ public class MainActivity extends AppCompatActivity implements IBeaconScanner.Ca
@BindView(R.id.textinputlayout_uuid)
TextInputLayout textInputLayoutUuid;
@BindView(R.id.edittext_uuid)
EditText editTextUuid;
TextInputEditText editTextUuid;
@BindView(R.id.textinputlayout_major)
TextInputLayout textInputLayoutMajor;
@BindView(R.id.edittext_major)
EditText editTextMajor;
TextInputEditText editTextMajor;
@BindView(R.id.textinputlayout_minor)
TextInputLayout textInputLayoutMinor;
@BindView(R.id.edittext_minor)
EditText editTextMinor;
TextInputEditText editTextMinor;
@BindView(R.id.button_start)
Button buttonStartScanning;
@BindView(R.id.button_stop)
Expand Down
18 changes: 9 additions & 9 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
<android.support.design.widget.TextInputLayout
android:id="@+id/textinputlayout_uuid"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:hint="@string/uuid">

<EditText
<android.support.design.widget.TextInputEditText
android:id="@+id/edittext_uuid"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/uuid"
android:inputType="text"
android:text="@string/beacon_uuid"/>

Expand All @@ -37,13 +37,13 @@
<android.support.design.widget.TextInputLayout
android:id="@+id/textinputlayout_major"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:hint="@string/major">

<EditText
<android.support.design.widget.TextInputEditText
android:id="@+id/edittext_major"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/major"
android:inputType="number"
android:text="@string/beacon_major"/>

Expand All @@ -52,13 +52,13 @@
<android.support.design.widget.TextInputLayout
android:id="@+id/textinputlayout_minor"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:hint="@string/minor">

<EditText
<android.support.design.widget.TextInputEditText
android:id="@+id/edittext_minor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/minor"
android:inputType="number"
android:text="@string/beacon_minor"/>

Expand Down

0 comments on commit 7edded9

Please sign in to comment.