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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:37:43+00:00 2026-05-19T13:37:43+00:00

I wanted to make a ListView where the items have two pressable pieces, like

  • 0

I wanted to make a ListView where the items have two pressable pieces, like the layouts that show up in a couple of places in the stock Android phone/contacts application:


I have the layout working fine, including handling events from each piece separately, except for a visual issue when the smaller piece is pressed. In my application the smaller piece only gets a small ellipse for the background when it is pressed, like this:

Note that is actually not my application – that is NubDial, but my application has the same problem. Since NubDial uses the exact same XML layout as the phone app, I’m not sure how relevant the list item layouts are, but here they are anyway:

Contacts list: contacts_list_item.xml
NubDial: contacts_list_item.xml

Does anybody know what might be happening there?

  • 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-19T13:37:44+00:00Added an answer on May 19, 2026 at 1:37 pm

    The layout was using this background drawable for the button on the right:

    <selector xmlns:android="http://schemas.android.com/apk/res/android">
    
        <item android:state_window_focused="false"
            android:drawable="@android:color/transparent" />
        <item android:state_focused="false" android:state_pressed="true"
            android:drawable="@*android:drawable/list_selector_background_transition" />
        <item android:state_focused="false" android:state_pressed="false"
            android:drawable="@android:drawable/screen_background_dark"/>
    
    </selector>
    

    Copying the list_selector_background_transition drawable and its images into my project fixed the issue. I thought this was pretty odd, and I would have liked to use the system drawable if possible. Anyone know what was going on?

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

Sidebar

Related Questions

I wanted to make the listview show thumbnails only when the items are visible
I wanted to make a simple chart of users that have been created in
I have a column in my SQL table, that I wanted to make a
i have this url that i wanted to make friendly, using rewrite on .htacess
I have a signup form, and I wanted to make it so that they
I wanted to make an application that will take either the path of the
I wanted to make a function that populates a Grid in WPF with pictures.
Let's say I wanted to make a python script interface with a site like
In a program that I'm writing, I wanted to make a ConfigParser that's read
I have learned that when using android:entries with a ListView , it uses android.R.layout.simple_list_item_1

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.