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 8348779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:47:32+00:00 2026-06-09T07:47:32+00:00

O my acer tablet the return does not get replace by done with the

  • 0

O my acer tablet the return does not get replace by done with the following xml, but does on my other 2 android devices

So I was going to use the return key to exit the keyboard as a bck up,
problem, I figured out how to do the call back when enter key is press, but don’t know how to make the keyboard go away,
code

mUserName=(EditText)findViewById(R.id.viewUserName);
        mUserName.setOnEditorActionListener(
                new android.widget.TextView.OnEditorActionListener()
                {
                    public boolean onEditorAction(TextView v, int actionId, KeyEvent event)
                    {
                        // goes here when enter is press

                        return false;
                    }
                }


                );
  • 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-09T07:47:35+00:00Added an answer on June 9, 2026 at 7:47 am

    In your xml for the edit text, set the imeOptions. Basically just add this line:

    android:imeOptions="actionDone"
    

    This will change the enter button to a “done” button, and dismiss your keyboard when pressed.

    -OR-

    You can add this inside the code block from above

    InputMethodManager imm = (InputMethodManager)getSystemService(
      Context.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(mUserName.getWindowToken(), 0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today I purchased Android tablet for native development -- Acer Iconina Tab A500 (Honeycomb
Hi I am working with multiple tablet devices, iPad, Galaxy Tab, Acer Iconia, LG
Ok, so I have a Android 3.1 tablet (Acer Iconia Tab, which is great
Tablet: Acer A500 GEN1 Android 3.1 kernel 2.6.36.3 (API level 12) SipManager since API
devices :[1.1:Acer C6, 2:Acer C6, 1:Acer C6, 2.2:HTC Magic] files :[2:Tetris.apk, 1:TheSims3.apk] I have
Im trying to debug application on Acer Iconia but the usb Debugging mode wont
I'd like to buy an Acer Liquid E as an Android test phone (normal
I'm sure this is a dumb question but Googling got me nowhere. Does each
I am experiencing a big probleme on Android Honeycomb 3.0 (Acer Iconia). I don't
When running manually compiled Android apps on the Acer Iconia Smart, there always remains

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.