Keyboard - NativeScript Docs
文章推薦指數: 80 %
All widgets that inherit from EditableTextBase , i.e., TextField and TextView , have a keyboardType property that gets or sets the soft keyboard type that ... NativeScriptCore USERINTERFACEKeyboard KeyboardType AllwidgetsthatinheritfromEditableTextBase,i.e.,TextFieldandTextView,haveakeyboardTypepropertythatgetsorsetsthesoftkeyboardtypethatwillbeshownwhileineditmode.PossiblevaluesarecontainedintheKeyboardTypeenumeration. datetime Android:TYPE_CLASS_DATETIME|TYPE_DATETIME_VARIATION_NORMAL iOS:UIKeyboardTypeNumbersAndPunctuation phone Android:TYPE_CLASS_PHONE iOS:UIKeyboardTypePhonePad number Android:TYPE_CLASS_NUMBER|TYPE_NUMBER_VARIATION_NORMAL|TYPE_NUMBER_FLAG_SIGNED|TYPE_NUMBER_FLAG_DECIMAL iOS:UIKeyboardTypeNumbersAndPunctuation url Android:TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_URI iOS:UIKeyboardTypeURL email Android:TYPE_CLASS_TEXT|TYPE_TEXT_VARIATION_EMAIL_ADDRESS iOS:UIKeyboardTypeEmailAddress ReturnKeyType AllwidgetsthatinheritfromEditableTextBase,i.e.,TextFieldandTextView,haveareturnKeyTypepropertythatgetsorsetsthesoftkeyboardreturnkeytype.PossiblevaluesarecontainedintheReturnKeyTypeenumeration. done Android:IME_ACTION_DONE iOS:UIReturnKeyDone next Android:IME_ACTION_NEXT iOS:UIReturnKeyNext go Android:IME_ACTION_GO iOS:UIReturnKeyGo search Android:IME_ACTION_SEARCH iOS:UIReturnKeySearch send Android:IME_ACTION_SEND iOS:UIReturnKeySend Askthecommunity Improvethisarticle
延伸文章資訊
- 1Specifying virtual keyboard type for EditText in XML - Stack ...
Try android:imeOptions or TextView#setImeOptions(). Check the docs.
- 210 best Android keyboards for all kinds of typists
If the stock keyboard on your phone is giving you the blues, we'll show you the best Android keyb...
- 3Slide your finger to type - Android - Gboard Help - Google ...
Change your keyboard settings · On your Android device, open the Settings app Settings app . · Ta...
- 4Handle input method visibility | Android Developers
</activity> ... </application>. Note: If the user's device has an attached hardware keyboard, the...
- 5Working with the Soft Keyboard | CodePath Android Cliffnotes
The Android system shows an on-screen keyboard, known as a soft input method, when a text field i...