Android Expandablelistview cannot be expanded

Source: Internet
Author: User

1. Button
Yes, yes, that is the button component, do not know that there are fewer times the problem, a lot of it is caused by it!
The most common problem: Expandablelistview cannot be expanded, Onitemclicklistener does not respond to problems.
Workaround : Check the view file loaded in the GetView method, whether it contains a button or a ImageButton, if it is included, change it to TextView or ImageView try, the problem can be solved.
Cause: The layout file of the listener event sequence is the component view, and then the layout file skills, and such as Onitemclicklistener, such as listening to the event, are listening to the layout, if there is a button like this, will be intercepted and not listen to.

2. Arrows
You have defined the layout view with arrows, but the arrows that come with the system are displayed.
Problem: Remove the system arrow display.
Workaround: Add android:groupindicator= "@null" to the Expandablelistview attribute

Android Expandablelistview cannot be expanded

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.