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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:03:27+00:00 2026-05-26T19:03:27+00:00

I have a ListView subclass that display rows that each contain an EditText and

  • 0

I have a ListView subclass that display rows that each contain an EditText and a TextView.
When I touch the EditText it’s gaining focus (good), the user type the information I want, and type the KEYCODE_ENTER to launch the onEditorAction() method from the OnEditorActionListener interface. On that method I’m dismissing the keyboard with this

InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
    imm.hideSoftInputFromWindow(et.getWindowToken(), 0);

All other EditText updates accordingly to the input change.
(all good so far).

BUT
After all that the orange focus is passed up to the next focus (the following row).
I would want to remove this behaviour in this case, but still want the user to have the ability to navigate from one to an other using up and down key.

So my question is:
How and where can I remove the focus of an EditText that is in a row of a ListView?

Note that:
I’ve try using aView.clearFocus(); in the onEditorAction() on the EditText that is giving the focus to the next one. (don’t work)
I’ve try using thatListView.clearFocus();, but as expected it didn’t worked.

and if there is no easy way I’m planning to go row by row and child by child to do a v.clearFocus().

Thanks

  • 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-26T19:03:28+00:00Added an answer on May 26, 2026 at 7:03 pm

    In your onEditorAction(), return true to tell that you have consumed the action.

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

Sidebar

Related Questions

I have listView in which I inflate a row contain textview and button now
I have listview that contain checkbox and an image when the checkbox is clikced
I have ListView which as one TextView in each Row. and im discovering some
I have a ListView that looks like this: Notice how the TextView is getting
I have ListView that has the following EditItemTemplate: <EditItemTemplate> <tr style=> <td> <asp:LinkButton ID=UpdateButton
I have a ListView in WPF that is databound to a basic table that
I have a ListView on a page that displays a list of widgets. When
I have a listview with a DataTemplate that has a ComboBox. I want the
I have a ListView control that is in FullRowSelect mode, MultiSelect off and using
I have a ListView with a bunch of ListItem's. When the user selects an

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.