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

  • SEARCH
  • Home
  • 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 8868107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:11:16+00:00 2026-06-14T17:11:16+00:00

I just imported the sdk softkeyboard in eclipse (sample code from API version 16,

  • 0

I just imported the sdk softkeyboard in eclipse (sample code from API version 16, but tried earlier versions too) and installed it on my devices (Galaxy Note 10.1, Galaxy S2, and Galaxy Nexus).
After some testing I noticed a strange behavior: When I hit a key on the very top the keyboard will show me the suggestion of the letter which is above the letter I really pressed.
For my current study I need to implement a softkeyboard and add some features. But for these features I need an accurate keyboard.

Can you confirm the behavior and give me any suggestions how to fix?

Thank you very much 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-06-14T17:11:18+00:00Added an answer on June 14, 2026 at 5:11 pm

    After hours of searching I finally found a solution for my problem.

    The android sample keyboard uses the KeyboardViewStyle which inherit from KeyboardView
    In the android source I found the definition of Widget.KeyboardView

    <style name="Widget.KeyboardView" parent="android:Widget">
        <item name="android:background">@android:drawable/keyboard_background</item>
        <item name="android:keyBackground">@android:drawable/btn_keyboard_key</item>
        <item name="android:keyTextSize">22sp</item>
        <item name="android:keyTextColor">#FFFFFFFF</item>
        <item name="android:keyPreviewLayout">@android:layout/keyboard_key_preview</item>
        <item name="android:keyPreviewOffset">-12dip</item>
        <item name="android:keyPreviewHeight">80dip</item>
        <item name="android:labelTextSize">14sp</item>
        <item name="android:popupLayout">@android:layout/keyboard_popup_keyboard</item>
        <item name="android:verticalCorrection">-10dip</item>
        <item name="android:shadowColor">#BB000000</item>
        <item name="android:shadowRadius">2.75</item>
    </style>
    

    There I noticed following line:

    <item name="android:verticalCorrection">-10dip</item>
    

    To solve my problem I defined my own style which inherit from Widget.KeyboardView and overwrote android:verticalCorrection the following way:

    <style name="Widget.MyKeyboardView" parent="android:Widget.KeyboardView">
        <item name="android:verticalCorrection">0dip</item>
    </style>
    

    In the end I applied the style to my keyboard.

    et voilà 🙂

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

Sidebar

Related Questions

I've just imported a code file from my Netbeans project into an Eclipse project.
I've just imported a large amount of source code into Eclipse and basically the
I just installed Eclipse and Android SDK in Mac OS X. I imported the
I just imported my Wordpress database from a localhost installation on my computer to
I have just imported my old project. But it shows error. I am not
I just installed MySQL 5 on my server and imported a database from another
I've just created a project on Eclipse and imported some source files (existing project).
I've imported my mod_rewrite rules... everything works just fine... but seemingly randomly it deletes
I just imported my posts from blogger into wordpress. In doing this, the tags
I have just imported a database table from a previous site, and one of

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.