使用
Android 1.6(4)和2.3.3(10)进行测试.
我已经制作了一个简约的测试应用程序来演示这一点,它所做的只是加载xml:
setContentView(R.layout.main);
而xml是:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
android:id="@+id/editText1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="none"
android:ems="10" >
问题:
当设置inputType =“none”时,执行期间的实际输入类型变为textMultiLine(0x00020001),我用调试器检查了它.
另一方面,如果我使用inputType =“text”,它按预期工作.
这是Android中的错误吗?