This text field does not specify an inputType or a hint

エラー警告

エラーメッセージ

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


内容


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


対応


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

実際に遭遇した例

 閲覧数:675 投稿日: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`



週間人気ページランキング / 12-24 → 12-30
順位 ページタイトル抜粋 アクセス数
1 この行に複数マーカーがあります | エラー(エラー) 6
2 ○○は解決できないか、フィールドではありません | エラー(エラー) 4
3 インポートされた ★★ は見つかりません | エラー 3
3 エディターを開くことができません: 予期しない例外が起こりました。 | エラー(エラー) 3
3 「Android Studio 3.1.2」で「Translations Editor」を表示 | Android Studio(IDE) 3
3 Eclipse で「パッケージ名」変更 | Eclipse(IDE) 3
3 エラー対応 3
3 Android Studio で、ソースコードが改行できない | Android Studio(IDE) 3
4 注意事項 2
4 既存プロジェクトがインポート出来ない | プロジェクト(環境構築) 2
4 values-ja/strings.xmlに記載した内容が反映されない | 多言語化(環境構築) 2
4 Unbind failed: could not find connection for android.os.BinderProxy@★★ | エラー(エラー) 2
4 public 型 ★★ はそれ独自のファイル内に定義されなければなりません | エラー 2
4 プラグイン "org.eclipse.ui.workbench" からのコードの起動で問題が発生しました | エラー(エラー) 2
4 R を変数に解決できません | エラー(エラー) 2
4 The project is using an unsupported version of the Android Gradle plug-in (0.8.3). Version 0.9.0 introduced incompatible changes in the build language. | Gradle(環境構築) 2
5 エラーが発生しました。ログ・ファイル ★★.log.を参照してください | エラー(エラー) 1
5 内部エラーの表示中に内部エラーが発生しました | エラー 1
5 Context を変数に解決できません | エラー(エラー) 1
5 java.lang.NullPointerException | エラー(エラー) 1
2025/12/31 1:01 更新