Android 1.6(4)および2.3.3(10)でテスト済み。
これを実証するために最小限のテストアプリケーションを作成しました。これは、xmlをロードするだけです。
setContentView(R.layout.main);
xmlは次のとおりです。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<EditText
android:id="@+id/editText1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="none"
android:ems="10" >
</EditText>
問題:
inputType="none"
実行時に実際の入力タイプを設定するtextMultiLine(0x00020001)
と、デバッガで確認しました。
一方、使用inputType="text"
すると期待どおりに動作します。
これはAndroidのバグですか?