Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6072837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:12:15+00:00 2026-05-23T10:12:15+00:00

Im trying to create an IME for android that is not a traditional keyboard

  • 0

Im trying to create an IME for android that is not a traditional keyboard (rows of keys corresponding to the different letters) and I am having trouble finding helpful resources on how to do so since all of the code examples in the SDK use a Keyboard API and it’s built in functions.

I’ve designed the interface of the IME in an XML file as though it were simply an Activity within in application but I’m getting lost in their demos since their Keyboards are simply objects that are built from a different style of XML structure.

If anyone has a link to an open source project that does not use the tradional keyboard structure or could simply guide me to displaying the UI that I’ve already constructed onto the IME window, I think I can figure the rest out.

If you need any more specfic information, please feel free to ask.
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:12:16+00:00Added an answer on May 23, 2026 at 10:12 am

    The SoftKeyboard sample is in fact structured similarly to what you need, though you don’t know it. Let’s break it down — here’s a complete stub to act as an input method service and use the standard XML keyboard:

    import android.inputmethodservice.InputMethodService;
    import android.inputmethodservice.Keyboard;
    
    public class MyInputMethod extends InputMethodService {
        private Keyboard mKeyboard;
    
        @Override public void onInitializeInterface() {
            mKeyboard = new Keyboard(this, R.xml.qwerty);
        }
    
        @Override public View onCreateInputView() {
            mInputView = (KeyboardView) getLayoutInflater().inflate(
                    R.layout.input, null);
            mInputView.setKeyboard(mKeyboard);
            return mInputView;
        }
    }
    

    Note that two XML documents are named. The first, res/xml/qwerty.xml, defines the layout so that the KeyboardView class knows how to draw the keyboard.

    But the layout which it inflates, res/layout/input.xml, consists of this (simplified):

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android">
        <android.inputmethodservice.KeyboardView android:id="@+id/keyboard" />
    </LinearLayout>
    

    This is all you need to declaratively create a view! Creating a stand-alone View isn’t much different from creating an Activity. You don’t have the standard activity lifecycle, but both environments give you access to XML layouts. All you need to do is use the inflater, reference any subviews you need, and then return the main view.

    So hopefully you’ll be able to inflate your layout after thinking about this.


    You don’t even need to use XML layouts if your layout is simple enough. If your input method can consist entirely of a single view, you can just instantiate it directly in onCreateInputView. Here’s a complete stub input method service that doesn’t use any XML:

    public class MyInputMethod extends InputMethodService {
        MyView view;
    
        @Override
        public View onCreateInputView() {
            return view = new MyView(this);
        }
    
    }
    

    (Of course the boilerplate in the manifest and res/xml/method.xml files would still be there.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying create a WCF service that leverages the WPF MediaPlayer on the
Trying to create my first iPhone app that would play back audio. When I
Trying to create several layers of folders at once C:\pie\applepie\recipies\ without using several different
Trying to create a small monitor application that displays current internet usage as percentage
I'm trying create a box in my Django app that displays text (and possibly
I'm trying create a ASMX webservice that can perform a HTTP GET request. I
I'm trying create a scaling layout for an Android application. The whole screen should
I am trying create a small web application that allows a user to login
Trying to create a simple document that gets the parentNode then applies a background
Trying to create a pattern that matches an opening bracket and gets everything between

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.