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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:25:32+00:00 2026-06-02T09:25:32+00:00

How to create listview like this in android 1.6 or 2 (because of renderscript,

  • 0

How to create listview like this in android 1.6 or 2 (because of renderscript, which works only in 3 or later, but I need list to work on almost all androids):

enter image description here

  • 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-02T09:25:34+00:00Added an answer on June 2, 2026 at 9:25 am

    I used Camera.setTranslate(x, 0, z) in drawChild, where changed x position for rotation virtualization and z for overlaping. Then there was problem with overlapping, because last item was on top and first on bottom layer. So, in onCreate() method called this.setChildrenDrawingOrderEnabled(true) and overriden protected int getChildDrawingOrder (int childCount, int i) {} where I could change order for middle and later rows.
    This idea was given by Renard, who suggested me in other my post about almost same thing here.

    My getChildDrawingOrder(int, int) implementation to get overlapping I need:

    @Override
    protected int getChildDrawingOrder (int childCount, int i) {
        int centerChild = 0;
        //find center row
        if ((childCount % 2) == 0) { //even childCount number
            centerChild = childCount / 2; // if childCount 8 (actualy 0 - 7), then 4 and 4-1 = 3 is in centre.      
            int otherCenterChild = centerChild - 1;
            //Which more in center?
            View child = this.getChildAt(centerChild);
            final int top = child.getTop();
            final int bottom = child.getBottom();
            //if this row goes through center then this
            final int absParentCenterY = getTop() + getHeight() / 2;
            //Log.i("even", i + " from " + (childCount - 1) + ", while centerChild = " + centerChild);
            if ((top < absParentCenterY) && (bottom > absParentCenterY)) {
                //this child is in center line, so it is last
                //centerChild is in center, no need to change
            } else {
                centerChild = otherCenterChild;
            }
        }
        else {//not even - done
            centerChild = childCount / 2;
            //Log.i("not even", i + " from " + (childCount - 1) + ", while centerChild = " + centerChild);
        }
    
        int rez = i;
        //find drawIndex by centerChild
        if (i > centerChild) {
            //below center
            rez = (childCount - 1) - i + centerChild;
        } else if (i == centerChild) {
            //center row
            //draw it last
            rez = childCount - 1;
        } else {
            //above center - draw as always
            // i < centerChild
            rez = i;
        }
        //Log.i("return", "" + rez);
        return rez;
    
    }
    

    I hope this post will help someone in future

    Screenshot is actually almost the same as I mentioned in my question. I used alpha, so overlayed items is a little bit see-through:

    enter image description here

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

Sidebar

Related Questions

So I have a listView on Android which I create in code like so:
Got a little problem. I'd like to create an android list view activity with
Hi all I would like to create a listview in android with items populated
I want to create a gridview like android market, I want to populate this
i want to create listview like below. check box | Textview | Textview |
I'm gonna create a ListView in WPF like the below image (source: picfront.org )
How can I create layout like below Image. Is there any ListView example like
i want to create vertical expandable list view using java script.like here click .If
I need to create a ListView or TableLayout that each row consists of 3
I have create a listview of Contact numbers , the list item contains 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.