This text field does not specify an inputType or a hint

エラー警告

エラーメッセージ

 状態:解決済  閲覧数:2,017  投稿日:2014-04-02  更新日:2014-04-02
This text field does not specify an inputType or a hint


内容


・テキストフィールドに、inputTypeを指定していないことに関する警告


対応


・テキストフィールドに、inputTypeを指定

実際に遭遇した例

 閲覧数:693 投稿日:2014-04-02 更新日:2014-04-02

警告メッセージ


This text field does not specify an inputType or a hint


対応


・テキストフィールドに、inputTypeを指定

・対象ファイル
▼/res/layout/test.xml

・修正前
<EditText
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:text="@string/hello" />


・修正後
<EditText
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:text="@string/hello"
   android:inputType="text" />



[I18N] Hardcoded string "★★", should use @string resource

Image Without `contentDescription`



週間人気ページランキング / 5-27 → 6-2
順位 ページタイトル抜粋 アクセス数
1 Android FAQ 27
2 cd: can't cd to data/data/パッケージ名/databases | Android Debug Bridge (adb) 14
3 ログイン 6
4 Android Studio で、ソースコードが改行できない | Android Studio(IDE) 4
4 この行に複数マーカーがあります | エラー(エラー) 4
4 public 型 ★★ はそれ独自のファイル内に定義されなければなりません | エラー 4
5 「Android Studio 3.0.1」でデザインプレビューで表示されるテキストと、エミュレーター(もしくは実機デバッグ)で表示されるテキスト内容が異なる | Android Studio(IDE) 3
5 ○○は解決できないか、フィールドではありません | エラー(エラー) 3
6 adb: not found | Android Debug Bridge (adb) 2
6 No resource identifier found for attribute 'showAsAction' in package 'android' | エラー 2
6 Androidエミュレータで、PCキーボード入力を有効にしたい | エミュレータ(環境構築) 2
6 エディターを開くことができません: 予期しない例外が起こりました。 | エラー(エラー) 2
6 プラグイン "org.eclipse.ui.workbench" からのコードの起動で問題が発生しました | エラー(エラー) 2
6 アプリケーション起動時に表示されるアクティビティを変更 | 仕組み 2
7 クラス(環境構築) カテゴリー 1
7 java.lang.NullPointerException | エラー(エラー) 1
7 Failed to allocate memory: 8 | エラー(エラー) 1
7 「Android Studio 3.1.2」でプロジェクト削除するためには、物理的にキーボードの「Delete」キーを押す必要がある | Android Studio(IDE) 1
7 「SQLite」利用しているのに、データベースが見つからない | SQLite 1
7 複数画面が存在する時、起動後初期表示される画面はどこで決まるの? | 仕組み 1
2026/6/3 5:05 更新