在我的應用程序中,我想讓用戶只輸入大寫字母。所以我使用了大寫財產。Android大寫字符在手機中不起作用
這是一個代碼部分
<EditText
android:id="@+id/et5"
android:layout_width="140dp"
android:layout_height="wrap_content"
android:layout_x="127dp"
android:layout_y="219dp"
android:maxLength="25"
android:ems="10"
android:singleLine="true"
android:capitalize="characters"
android:text="" />
在某些情況下,我也試過這個
android:inputType="textCapCharacters"
它工作在模擬器罰款,但它不是在手機工作。在電話中,它顯示小寫字母。這裏有什麼錯誤以及如何克服?
我想只顯示upp呃情況下,字母鍵盤 – 2013-03-19 05:48:34
好了,然後嘗試安卓的inputType =「textCapCharacters」作爲利用已廢棄 – 2013-03-19 05:55:12
textCapSentences只大寫第一個字母 – 2013-03-19 05:56:08