简体   繁体   中英

How to implement an onScreen Keyboard in Android?

The default keyboard of android covers the EditText in my app UI. So i need to implement my on keyboard. Just like a keyboard in Regular Calculator app. Which is the best way to implement it? Is there any library available?

Custom keyboard

This link has everything required to create custom keyboard

In order to do not hide your edittext under the keyboard, you need to add the following line inside your Manifest file, under your activity section.

 <activity 
      android:windowSoftInputMode="adjustPan"
      ...
      ...

Moreover, depending on your needs you can have the numeric keypad or the common keyboard shown. But this is more than what you asked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM