Tuesday, 19 January 2016

How to create a custom keyboard on android


If you are interested in making your own Soft Keyboard in android, then this tutorial will be helpful for you. Below are few steps to learn how to create your own Soft Keyboard that can serve as your own default keyboard.
Step1: To enter a text Input Editor Method(IEM) is used in android. BIND_INPUT_METHOD permission into application tag is used to connect our service with the IME.
AndroidManifest.xml
  1. <service
  2.    android:name=".CustomSoftKeyboard"
  3.    android:label="CustomSoftKeyboard"
  4.    android:permission="android.permission.BIND_INPUT_METHOD">

  5.    <intent-filter>
  6.        <action android:name="android.view.InputMethod" />
  7.    </intent-filter>

  8.    <meta-data
  9.        android:name="android.view.im"
  10.        android:resource="@xml/method" />

  11. </service>

To view the full Blog about How to create a custom keyboard on android visit Findnerd.
Also visit Findnerd for such more tech Blogs like Android, iOS Development Blogs etc.

No comments:

Post a Comment