Development of Android keyboards (letters, numbers, symbols)

Source: Internet
Author: User
Tags delete key

Summary: Click EditText to trigger the display of the Popupwindow keyboard view. This demo disables the soft keyboard that comes with the system. This keyboard can contain uppercase/lowercase letters, numbers, and special characters.

Usage: click "abc" and "ABC" to switch between uppercase and lowercase letters, and click "123" and "abc" to switch between numbers and letter keyboards, click "character" and "123" to switch between the special symbol and the numeric keyboard. It seems that a keyboard is actually four keyboards, all implemented on a popupwindow, and style is used. xml definition. This is to unify the keyboard style. Click the delete key to delete a character, and press the delete key to clear EditText, this demo also sets that the input cursor is always at the last side of the input character;

1: initial operation



3: uppercase letter keyboard


4: numeric keypad

:

5: special symbol keyboard:


Source code download to: http://download.csdn.net/detail/anliang123abc/6317507


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.