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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:37:13+00:00 2026-06-14T09:37:13+00:00

I make a soft keyboard in application. There are two edittext, click can get

  • 0

I make a soft keyboard in application. There are two edittext, click can get focus, but the soft keyboard can just output in the second edittext. Is there any way to l let the soft keyboard output from the Edittext which gets focus?

  • 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-14T09:37:14+00:00Added an answer on June 14, 2026 at 9:37 am

    Remove android:focusable attribute, android:foucsableInTouchMode attribute and tag in the XML file, Do it now, then

    public class YOURMAINActivity extends Activity implements OnClickListener {
    
       private EditText editTxt1;
       private EditText editTxt2;
    
       @Override
       public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.layout_id);
            editTxt1 = (EditText)findViewById(R.id.edit_text_one_id); 
            editTxt2 = (EditText)findViewById(R.id.edit_text_two_id);
            editTxt1.setOnClickListener(this);
            editTxt2.setOnClickListener(this);
    
       @Override
       public void onClick(View view) {
    
           switch(v.getId()) {
    
               case R.id.R.id.edit_text_one_id :
                        editTxt1.requestFocus();
                        editTxt1.setFocusable(true);
                        editTxt2.setFocusable(false);
                        break; 
               case R.id.R.id.edit_text_two_id :
                        editTxt2.requestFocus();
                        editTxt2.setFocusable(true);
                        editTxt1.setFocusable(false);
                        break;
           }
            // Add Code for Showing Keyboard Here
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an EditText box and when you click it the soft keyboard comes
I have soft real-time .NET application run on W2008R2. I just realised that I
My activity is panned in order to make space for soft keyboard(keyboard is visible).
In my application, the device soft-keyboard is covering the EditTextViews, so user cannot see
I make a bot program and i want to send some keyboard keys between
I make a weather application in Android which is showing current temperature and forecast
I am developing an Android application using Phonegap . I need to make the
I'm aware that questions have been asked and answered about the Android soft keyboard
I've been looking to create a custom keyboard for my application. At first, I
I have a layout with a ListView that contains EditText objects that can requestFocus()

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.