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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:21:01+00:00 2026-06-14T03:21:01+00:00

I want to set new style for expandable list view in my Android app.

  • 0

I want to set new style for expandable list view in my Android app. I am creating a group_indicator.xml file in drawable folder, where I am writing the code:

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_empty="true" android:drawable="@drawable/arrowright1">
    <item android:state_expanded="true" android:drawable="@drawable/arrowdown1">
    <item android:drawable="@drawable/arrowright1">
</item></item></item></selector>

Then I am using this XML file in my ExpandableList view in the main file:

<ExpandableListView
        android:id="@+id/android:list"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:groupIndicator="@drawable/group_indicator"
        android:layout_weight="1" >
    </ExpandableListView>

Now I want to set some more styles for my expandable list, I want to change the appearance of the parent and the child nodes.

Is there any other way to do that?
I heard of some style.xml file in res->values folder, but I don’t know exactly how to implement it.
Please Guide.

  • 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-14T03:21:02+00:00Added an answer on June 14, 2026 at 3:21 am

    You need to use implement custom ExpandableListAdapter

    Override the following methods:

    getChildView to override child view and inflate your own custom view.
    getGroupView to override group header view and inflate your own custom view.

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

Sidebar

Related Questions

I've just created a new view based application, and now I want to set
I am new to web-design. I want to set the page-width so that it
I am new to iPhone development. I want to set an activity indicator which
i want set the visibility to itemized overlay in map view. if the zoom
I want to set the attribute based on some bool value in my view
I have a simple metro style app where I want to drag 16 images
I want to create a new style, not just alter the style attribute of
I want to create and add a set of <style> tags to the head
I want to replace all meta tags with a set of new meta tags.
I have a window with the following properties set int he .rc file: STYLE

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.