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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:59:52+00:00 2026-05-31T16:59:52+00:00

I making an application with my own keyboard and I want to completely DISABLE

  • 0

I making an application with my own keyboard and I want to completely DISABLE the android default virtual keyboard.

I tried this:

 myEditText.setOnClickListener(new OnClickListener()
        {
            public void onClick(View v) 
            {
                InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
                 imm.hideSoftInputFromWindow(keresetEditText.getWindowToken(), 0);
    
            }
         });

It is working very well, but accidently I just found an error that really bugs me to the hell:

When I slide down my finger on the EditText the soft keyboard just appear!
So the conclusion is: the onClickListener just not running while i slide, and not tap.

I tried onTouchListener, but it just didn’t work!
Any tips how could I completely disable virtual keyboard ? I don’t need it in the entire application.

Other thing:
I could make an other question to stackoverflow but I think its logical here so:
When I click on the EditText’s cursor, i can move it in the text inside my EditText, but i dont want it to enabled like this. Can I disable the cursors MOVEability ??? So i need the blinking cursor but just totally in stayed position.

  • 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-31T16:59:53+00:00Added an answer on May 31, 2026 at 4:59 pm

    Here are few solutions for you:

    • if you will never need the softkeyboard to show on that activity, you can set the android:windowSoftInputMode="stateAlwaysHidden" attribute in manifest

    • disable the edit text. You will not have the blinking cursor (or any cursor at all), but it will be impossible to open the soft keyboard using a disabled edit text, while still being able to set your own text in code

    • just use a TextView, while setting as background android.R.drawable.edit_text .It will look like an EditText, while only being a read-only TextView, still allowing you to set any value from code. Again, you still don’t have the blinking cursor

    • set the EditText’s focusable and clickable attributes to false. The edit text will never receive focus, thus never causing the soft keyboard to show

    • (this is a hack) place an invisible button over the edittext, so a click over the edittext will actually be intercepted by the button that does nothing. The edit text will still be focusable using the trackball or direction keys, and you still won’t have the blinking cursor

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

Sidebar

Related Questions

I am new to android. I am making an application for reading the pdf
So I'm making this android application, that needs to read data from user-provided CSV
I'm new to Rails and making application where college members (teachers and students) can
I'm making a web application that uses hash tags for page navigation like this
How would you go about making an application that can edit it's own look
I'm making an iPhone app where I want to save state of the Application.
Im making my own application by using GWT framework. I say that many Class
I have completed the MVC Music Store application, and now am making my own
I am making my own base controller since I want to pass some data
I'm making a business application but I've been following the tutorial of Beginning Android

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.