Android 1.6(4)および2.3.3(10)でテスト済みです。Android EditText inputType = "none"は機能しません。 "textMultiLine"になります
私はそれがないすべてがで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のバグですか?
値をバインドします –