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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:36:46+00:00 2026-05-18T08:36:46+00:00

I want to enable the orange highlight that occurs when touching a listView row.

  • 0

I want to enable the orange highlight that occurs when touching a listView row.

If the onclick event was generated from the row itself, I can adjust the hightlight by setting the style of the listview. However in my case, the clicking event is generated by the TextView underneath with onclick event attached to it.

When touch event occurs, Listview isn’t aware of clicking is happening. It doesn’t receive focused or pressed event.

Is there bubbling or capturing technique I could use like Flex did? Or any suggestion/solution?

Thank you very much.

  • 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-18T08:36:46+00:00Added an answer on May 18, 2026 at 8:36 am
    View tempView = null;  // Class Variable to temporary store Clicked Row's view
    

    Method:

     public void onItemClick(AdapterView parent, View v, int position,long id)
    {
        listView.setFocusable(true);
        listView.setSelected(true);
        v.setBackgroundColor(Color.LTGRAY); // CHANGE COLOR OF SELECTED ROW HERE>
        selectedId = (int)id;
    
        if(tempView != null){
            //If row is already clicked then reset its color to default row color
            tempView.setBackgroundColor(Color.TRANSPARENT);
    
        }
        tempView = v;
    

    }

    Hope this helps. Thanks 🙂

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

Sidebar

Related Questions

I want to enable an UIAlertView-Request before the user can delete an item from
I want to enable the user to highlight a row on the WPF DataGrid
I want to enable the users of my website to download the files from
I want to enable the user to select a video file from the on-device
I want to enable GZIP compression on my gSOAP client. How can I do
I want to enable Encode::HanExtra on Windows XP environment. I can't find the name
I want to enable drag and drop from our windows forms based application to
I have created a UITextView programatically and want to enable scrolling for that UITextView.
I want to enable/disable the Windows sticky keys feature from a program. Is there
I just want to enable / disable onclick and href on elements (a or

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.