character mapping in edittext android

后端 未结 4 1837
猫巷女王i
猫巷女王i 2021-02-05 22:48

I want to make my edittext like when I write character \"g\" it\'s related mapping custom character should written like here in Hindi it\'s \"जी\"

I think there should

4条回答
  •  既然无缘
    2021-02-05 23:09

    Key character map files (.kcm files) are responsible for mapping combinations of Android key codes with modifiers to Unicode characters.Device-specific key layout files are required for all internal (built-in) input devices that have keys, if only to tell the system that the device is special purpose only (not a full keyboard).

    Device-specific key layout files are optional for external keyboards, and often aren't needed at all. The system provides a generic key character map that is suitable for many external keyboards.

    If no device-specific key layout file is available, then the system will choose a default instead.

    Key character map files are located by USB vendor, product (and optionally version) id or by input device name.

    Key character map files are located by USB vendor, product (and optionally version) id or by input device name.

    Suppose the user pressed A and SHIFT together. The system first locates the set of properties and behaviors associated with KEYCODE_A.

    key A { label: 'A' base: 'a' shift, capslock: 'A' ctrl, alt, meta: none }

    ey ESCAPE { base: fallback BACK alt, meta: fallback HOME ctrl: fallback MENU }

    key A { label: 'A' number: '2' base: 'a' shift, capslock: 'A' alt: '#' shift+alt, capslock+alt: none }

    key SPACE { label: ' ' number: ' ' base: ' ' shift: ' ' alt: '\uef01' shift+alt: '\uef01' }

提交回复
热议问题