एंड्रॉइड 1.6 (4) और 2.3.3 (10) के साथ परीक्षण किया गया।एंड्रॉइड एडिटटेक्स्ट इनपुट टाइप = "कोई नहीं" काम नहीं करता है, "textMultiLine" बन जाता है
मैं एक minimalistic परीक्षण आवेदन इस प्रदर्शन करने के लिए बनाया है, सब यह होता है के साथ एक्सएमएल लोड है:
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"
का उपयोग करता हूं तो यह अपेक्षा के अनुसार काम करता है।
क्या यह एंड्रॉइड में एक बग है?
बेहतर 'उपयोग करने के लिए setInputType (InputType.TYPE_NULL)' –