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

  • Home
  • SEARCH
  • 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 259337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:15:20+00:00 2026-05-11T22:15:20+00:00

I have created a custom ExpandableListAdapter and everything works properly. What I’d like to

  • 0

I have created a custom ExpandableListAdapter and everything works properly. What I’d like to be able to do is in each of the groups add a different type of child to the end. I have tried adding 1 to the getChildrenCount() number and then testing isLastChild in the getChildView() method, but that doesn’t seem to work.

If a group has three children what I have working looks like this:

Group
    NormalChild
    NormalChild
    NormalChild

But I’d really like something like this:

Group
    NormalChild
    NormalChild
    NormalChild
    AlternateChild

The idea being that the AlternateChild could be a link to more info about the group. Any Ideas?

EDIT:
ListView has addFooterView() which will allow you to add a footer to a whole ListView… wonder how to add them to the ExpandableListView’s children, or if it’s even possible

  • 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-11T22:15:20+00:00Added an answer on May 11, 2026 at 10:15 pm

    Perhaps you could try a slightly different approach.

    Rather than trying to add an extra item to the ListView directly, maybe try adding an ‘AlternateChild’ object to the underlying data source using a ‘isAlternateChild’ flag (or subclassing NormalChild or creating an IChild interface that you extend with NormalChild and AlternateChild.

    Then within getChildView you can check to see if the object being displayed within the view is normal or alternate and create or populate the appropriate View-type accordingly.

    By adding your extra object to the underlying data/list directly you can let the ExtendedListView do its thing normally. As an added bonus this means you can make the AlternateChild data dynamic and easily make changes to the data displayed in the view by modifying the corresponding object.

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

Sidebar

Related Questions

I have created custom listview, each row looks like my file custom_row.xml. Is there
I have created custom drawable marker which uses canvas to draw bounds. Everything works
I have created a custom post type named People. I have created a page
I have created custom site column with type text and I included in one
I have created a custom tab layout which look like this,I want to make
I have created a custom AppleScript that works, and placed it in the folder:
I have created Custom .NET controls, and I'd like to know if it's possible,
I have created a custom list in SharePoint 2010 programmatically. It works fine on
I have created custom event like when user is generataed then Event dispatcher will
I have created custom ctextbox with the following code. But I am not able

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.