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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:21:54+00:00 2026-05-25T01:21:54+00:00

I have an ExpandableListView where the children can be of variable height. My problem

  • 0

I have an ExpandableListView where the children can be of variable height. My problem is that all of the children take on the height of the longest child that has been viewed.

pic1(Sorry. New user so can’t embed images)

In the above pic; child 1 displays fine first time. Then I view child 2 (which is longer). Now when I view child 1 again it has taken on the longer height of child 2. This will continue with all of the children taking on the height of the longest child viewed.

All heights are set to wrap_content, I’ve also tried fiddling with some of the cache attributes on the ExpandableListView to no avail. If there’s a specific part of the code anyone wants me to post then just shout.

Update I’ve discerned that the problem lies with the webview in the child view. For some reason its height won’t refresh. I’ve tried calling invalidate() on the webview in the ExpandableListAdapter’s getChildView() but to no effect.

  • 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-25T01:21:55+00:00Added an answer on May 25, 2026 at 1:21 am

    This problem is caused by the webview contained in the child view. WebView automatically expands when loaded with longer content, but it doesn’t contract when the content is made shorter.

    There is a bug logged against this http://code.google.com/p/android/issues/detail?id=18726

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

Sidebar

Related Questions

I have an ExpandableListView backed by a BaseExpandableListAdapter. The child list items are all
can we have ExpandableListView inside ListView so that I can have group level first
I have an ExpandableListView with children that have text supplied on creation, and an
I have a Dynamic ExpandableListView. That is to say child are only load when
I have problem in this layout that : it doesn't show any child after
Have a matrix report now that has Position, Hours and Wages for a location
I have the following problem: I would like to change value of ExpandableListView's cell
I'm working on a project that has an ExpandableListView nested inside a regular ListView
This has been driving me crazy for a few days now. I have an
ok so I have an ExpandableListView, I have defined all my views and everything

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.