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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:39:35+00:00 2026-06-06T06:39:35+00:00

I have a custom listview and made overlapping very simple: in onDraw method, I

  • 0

I have a custom listview and made overlapping very simple: in onDraw method, I set rows’ z axis to about 200 and I override getChildDrawingOrder (int childCount, int i). So the result looks like this:

enter image description here

Of course, there are more transitions to look like that, but they are not related to this question.

But as you see, for about a second, the top row (i mean in z axis, which is white) looks buggy. There are imageViews with two state drawable (white when row is in center and blue when outside center) by coordinates. Change drawables programatically by setting background drawable. Bug seems to show when happens transition from one drawable to another: redrawing of bottom piece happens later than main piece of row. I need to make both pieces to change drawables at same time, so there won’t be such bugs. Is it android’s bug or can I solve it?

Does anyone know why this could happen?

  • 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-06T06:39:37+00:00Added an answer on June 6, 2026 at 6:39 am

    I used nininho suggestion to apply requestLayout() in rotected boolean drawChild(Canvas canvas, final View child, long drawingTime) {} method end and it works.

    P.S. put it where you really need it, I put it where goes transitions only, because this method eats lots of resources, while it repaints whole child.

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

Sidebar

Related Questions

I have made custom .xml layout for ListView. Now it looks: But it isn't
So i have this listview with my custom XML file that i made for
I have made a custom listView which which extends ListActivity and each row contains
I have made a custom ArrayAdapter for a ListView, in order to customize the
i have a ListView for which i have made a custom adapter which extends
I want to do a very simple thing. I have a listview in my
I have used custom listview and custom rating bar. If I add that custom
I have a custom listview, i successfully parse the data into a list but
I have a custom ListView with two button and I when I click either
I have a Custom ListView which has an ImageView and a TextView. and i

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.