Android Keyboard Properties

Source: Internet
Author: User

Keyboard definition: The keyboard description is a soft keyboard definition file, the row element indicates that this is the definition of a row of keys, the key element indicates that this is a key definition. The key element defines each key by some attributes, and here are some of the commonly used property descriptions:

    • Codes: Represents the output value of the key, can be a Unicode value or a comma (,) split multiple values, or a string. Escape special characters by "\ \" In the string, for example ' \\n ' or ' \\uxxxx '. Codes is usually used to define the key code, for example, the number in the key 1 corresponds to 49; If you provide a comma-separated number of values will be the same as the normal phone input keyboard to switch between multiple values.
    • Keylabel: Represents the text content of the key display.
    • Keyicon: Represents the icon content of the button display, and if specified, displays the text as a picture when it is displayed.
    • Keywidth: Represents the width of the key, can be an exact value or a relative value, for the exact value of supporting a variety of units, such as: pixels, inches, etc. relative value is the percentage relative to the base value, the ending in% or%p, where%p is relative to the parent container.
    • Keyheight: Represents the height of the button, the value is the same as above.
    • HorizontalGap: Represents the Gap before the key (horizontal direction), the value ibid.
    • Issticky: Specifies whether the key is sticky. For example, the shift-case toggle button, which has two states, presses the state and the normal state, evaluates to TRUE or FALSE.
    • Ismodifier: Specifies whether the key is a function key (modifier key), such as Alt or Shift. Evaluates to TRUE or FALSE.
    • Keyoutputtext: Specifies the text content of the key output and takes the value as a string.
    • Isrepeatable: Specifies whether the key is repeatable, or false if long press the key to trigger a repeat key event.
    • Keyedgeflags: Specifies the alignment instruction for the key, with a value of left or right.

In the OPhone default input method, if the unified page has more than one input box, the ENTER key in the soft keyboard becomes the next special key, which can be navigated to the next input box, so that the user can enter the operation easily. This functionality can be implemented by customizing the keyboard.

Turn from: 51497503

Android Keyboard Properties

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.