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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:06:44+00:00 2026-06-04T23:06:44+00:00

I have this list with some hidden TextView. When click on a item, I

  • 0

I have this list with some hidden TextView.

When click on a item, I want to slide down smoothly and show the hidden content, and if click again, slide up.

How is that possible?

Hidden and not hidden:

Image 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-04T23:06:46+00:00Added an answer on June 4, 2026 at 11:06 pm

    You are looking for ExpandableListView.

    Expandable ListView bydefault has two levels. First is called the “Group View” and the second level is called the “Child View”. You can simply achieve by making use of the Custom Adapter sample from the very first link I have provided.

    here are few links which will get you started,

    http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html

    http://about-android.blogspot.in/2010/04/steps-to-implement-expandablelistview.html

    http://www.techienjoy.com/android-expandable-list-dynamically-created-example.php

    To make only child expanded at a particular time, add this,

    explist.setOnGroupExpandListener(new OnGroupExpandListener() {
    
        public void onGroupExpand(int groupPosition) {
    
    
            for(int i=0; i<myExpAdapter.getGroupCount(); i++) {
                if(i != groupPosition) {
                    explist.collapseGroup(i);
                }
            }
        }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have some code like this: List<ClassB> back = new ArrayList<ClassB>(); for( ClassA classA
I have a generic list. Some elements of this list belong to a parent
If I have a list of some class like this: class Info { public
I have a list of hierarchical data like this: var list = new List<Data>(){some
I have written this program, which sorts some ints using a functor: #include<iostream> #include<list>
I have some LINQ code that generates a list of strings, like this: var
I have some financial data gathered at a List[(Int, Double)], like this: val snp
I'm having some trouble figuring this out. I have an unordered list menu that
I have list of li which have some hidden li also. I am applying
OK, I have a list of <li> s with some content in like so:

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.