Jestem nowy w rzeczywistości jest to moja pierwsza próba na Androida. Obserwuję witrynę szkoleniową dla programistów Androida. Moja activity_main.xml
wygląda jak następuje:Nie znaleziono zasób pasujący do podanej nazwy w layout_hint
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<EditText android:id="@+id/edit_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_hint="@string/edit_message"/>
Teraz pokazuje błąd i ostrzeżenia jak:
Ostrzeżenie - This text field does not specify an inputType or a hint
Błąd - error:Error:No resource found that matches the given name(at 'layout_hint' with the value '@string/edit_message')
Wielkie dzięki. Błąd zniknął. Ale wciąż otrzymuję komunikat ostrzegawczy. – Nitish
Edytowałem swoją odpowiedź. – Neoh
Thnks. teraz już nie ma – Nitish