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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:22:51+00:00 2026-05-24T20:22:51+00:00

I only have 1 child view for each group view, which is inflated from

  • 0

I only have 1 child view for each group view, which is inflated from a layout .xml file. I wish to animate the child view so that when the child item is displayed, the list item below it slides down. I tries this with a number of animations, but the isse is that the height/ width of the child view is first made visible and then the view animates within that space. However, I want a child view to show between 2 list views by making the following group view slide down to make way for the chile view.

For exanple, I tried the following. The animation does happens, but not as I have described above. I have added the following to the getChildView(), just before I return the child view:

    Animation anim = AnimationUtils.loadAnimation(MyExpandableList.this,
                                                   R.anim.translate);
    v.setAnimation(anim);

Here’s is my translate.xml:

    <?xml version="1.0" encoding="utf-8"?>
       <translate xmlns:android="http://schemas.android.com/apk/res/android" 
            android:fromYDelta="-50%p" 
    android:toYDelta="0"
    android:duration="500"/>

Thanks for your help.

Ani.

  • 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-24T20:22:52+00:00Added an answer on May 24, 2026 at 8:22 pm

    You have to animate all child views below the currently added child view also.
    Add all the Aniamtions to an AnimationSet and start the set.

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

Sidebar

Related Questions

I have a ListView that uses a custom layout that has 5 child View
I basically have 3 layers ( Window > Scene > View ) that each
I have a layout xml file with a linear layout. One of the children
So I have a custom view set up in code (no XML layout defined
I have a FrameLayout which has a ScrollView as the only child. During runtime
I have a Dynamic ExpandableListView. That is to say child are only load when
I have a custom control that is derived from ListView . This list view
I have a set of Controller/View that are composed dynamically, each one have a
I only have experience with log4net however that does not mean that there are
I have a MySQL table that will only have one row. What should my

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.