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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:01:40+00:00 2026-06-13T10:01:40+00:00

Possible Duplicate: Disable EditText blinking cursor I have 2 editText fields in my activity

  • 0

Possible Duplicate:
Disable EditText blinking cursor

I have 2 editText fields in my activity with some text in it:

EditText nameText=(EditText) findViewById(R.id.update_name_text);
nameText.setText(Info.getName());

EditText phone=(EditText) findViewById(R.id.phone_number);
phone.setText(Info.getPhoneNo());

When I run the app on my device and tap on the nameText field, a cursor and a keyboard appear. However, when I hide the keyboard, the keyboard goes away but the cursor stays. How can I make the cursor invisible as well.

When I press enter from nameText, the cursor goes to the phone field and the keyboard is still visible.This is fine. But when I hide the keyboard or press enter from the phone field, the keyboard disappears but the cursor stays.

Is there any way (other than using setOnEditorActionListener) to make the cursor invisible as well in the above situations?

  • 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-13T10:01:41+00:00Added an answer on June 13, 2026 at 10:01 am

    to remove the cursor from edittext you need to set

    nameText.setFocusable(false);
    

    and to visible cursor set

    nameText.setOnTouchListener(new View.OnTouchListener() {
                @Override
                public boolean onTouch(View v, MotionEvent event) {
    
                    nameText.setFocusableInTouchMode(true);
    
                    return false;
                }
    });
    

    will show the cursor in edittext…

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

Sidebar

Related Questions

Possible Duplicate: How disable Copy, Cut, Select, Select All in UITextView I have some
Possible Duplicate: css rule to disable text selection highlighting On my homepage i have
Possible Duplicate: What does jQuery.fn mean? I have some script on a page trying
Possible Duplicate: Disable browser's back button I have a log in page <div style=border:1px
Possible Duplicate: Disabling LinkButton doesn't disable the click event in javascript I have a
Possible Duplicate: Disable submit button on form submit I have a question about disable
Possible Duplicate: Disable, but not uninstall Resharper 4.x onwards i have a full licensed
Possible Duplicate: Disable back button in android in my app to from one activity
Possible Duplicate: Easy way to disable a UITextField? I have a UITextField. I want
Possible Duplicate: Disable browser 'Save Password' functionality In my application, I have a login

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.