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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:39:24+00:00 2026-06-03T22:39:24+00:00

`I am utilizing list selector, but its not working acoordingly. I am gettings effects

  • 0

`I am utilizing list selector, but its not working acoordingly. I am gettings effects after clicking list item, but there is no effect before item is clicked. Here is my code for selector:

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item
     android:state_selected="false"
        android:state_pressed="false"
        android:drawable="@drawable/ic_launcher" />

    <item android:state_pressed="true"
        android:drawable="@drawable/headerplain" />

    <item 
    android:state_focused="true" 
    android:state_pressed="false" 
    android:drawable="@drawable/headerplain" />

    <item android:state_selected="true"
     android:state_pressed="false"
        android:drawable="@drawable/headerplain" />
</selector>

and I have applied it to listView as 
 <ListView
        android:id="@+id/listView123"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"         
        android:listSelector="@drawable/list_selector"
        android:drawSelectorOnTop="true"
        android:focusable="true"
        >
    </ListView>

Please help me to get out of this problem
Thanks in advance

  • 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-03T22:39:25+00:00Added an answer on June 3, 2026 at 10:39 pm

    I have rowback and rowback_selected in my drawable folder…

    and Use android:state_focused,android:state_selected,android:state_pressed…

    <item android:state_focused="true" android:drawable="@drawable/rowback" />
    <item android:state_pressed="true" android:drawable="@drawable/rowback_selected" />
    <item android:state_selected="true" android:state_focused="false"
        android:state_pressed="false" android:drawable="@drawable/rowback_selected" />
    <item android:state_window_focused="false"
        android:drawable="@drawable/rowback" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way (utilizing Reflection I hope) that I can make an instantiated
Are there a lot of IT shops utilizing FxCop for writing production code? If
After recently answering a couple of questions here on SO that involved utilizing PHP's
I'm working on an infix to prefix program utilizing a stack class. However, the
I am utilizing the javax.scripting with Rhino in this project. I have a Java
I'm am utilizing a formset to enable users subscribe to multiple feeds. I require
I'm utilizing the code posted by Jesper Palm here: Make user control display outside
Given a large legacy project utilizing ASP.NET, javascript, css, etc, technologies, I was wondering
I'm building a winforms app utilizing passive-view MVP and Castle Windsor as an IoC
this is a b-day reminder code utilizing linkedlists typedef struct node { char name[61];

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.