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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:58:33+00:00 2026-05-11T05:58:33+00:00

The context: I want to have a ListView that wouldn’t receive focus (e.g. won’t

  • 0

The context: I want to have a ListView that wouldn’t receive focus (e.g. won’t highlight row when user touches it). Yet each row widget has it’s own OnClickListener. Here’s what I specify in layout xml:

android:choiceMode='none'  android:focusableInTouchMode='false' android:focusable='false' 

The ListView still behaves exactly the same. Could someone please explain

  1. The interrelation between the three
  2. What’s the right way to create a ListView that doesn’t receive focus?

TIA.

  • 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. 2026-05-11T05:58:34+00:00Added an answer on May 11, 2026 at 5:58 am

    The list receiving focus is different than the selected row not highlighting. The list gets focus whenever a user is in it. The best a ListView can do is report an int for whatever the user has selected. I’m not sure how each row widget has it’s own ClickListener. There are no row widgets that I am aware of. The onListItemClick belongs to the ListView.

    I havent been able to figure it out yet, but between android:listSelector and android:background and adjusting the alpha channels I figure there would be a way to make a selection look just like a non-selected row.

    android:listSelector='#8fff' makes it so just the foreground changes on selection.

    It seems like android chooses the non-selected foreground on its own, which is making this hard. I hope this helps.

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

Sidebar

Related Questions

I would have listview and a lot of items inside. I want that user
I have a listview that displays a list of profiles added by a user.
I have a listview that I want to add event listener to it. The
I have a bitmap image context and want to let this appear blurry. So
Context I have a live running redis-server. I want to make a backup. Idea:
I have some content that I want to appear on multiple pages of my
I want to parse a html content that have something like this: <div id=sometext>Lorem<br>
I have a content string that starts with an unordered list I want to
I have a listview that's populated by rows that get their data from a
I have a listview with a custom arrayadapter that handles about 15 strings. The

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.