I’m trying to define an EditText but this warning is shown:
This text field does not specify an inputType or a hint.
The code in main.xml is:
<EditText android:id="@+id/input"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/textTest" />
How can I fix it?
You could add a
hint:and a
inputTypeso you could present to the user a better suited soft keyboard for the text he is suposed to enter in theEditText:will present a soft keyboard with only numbers and various signs.
Those are just warnings, you could ignore them but is better for the user to implement them.