Download it and then place the .ttf file in the asset folder of you project (it already exists you don’t have to create it).

As you can see i have cerated a custom style for the parent textView, I included it in the values/styles.xml file. Inside this file you can set up all kinds of attributes for your layouts, like text color, size etc..

I want to consult that i f i want to create a expandable listview with image befor text of the row, i should i do?
I mean that i want like below:
ITEM1
image1 title1
image2 title 2
ITEM2
image 3 title 3
….
thanks first

Hi, thanks for this tutorial… I’m new in android and java development… coming from web development field.
I’m making a file explorer on android. I want to make a collapsible tree like view to display files and directories. do you think expandable listview would be ideal for it?

Well I haven’t acually tried it but I think child views can be themselves lists or expandable lists… in the getView method you can supply a variety of layouts for example inflated from XML layout ressource.

1) How would I tweak the code in order to have more than just one child under each group? Do I need to just create a new custom layout for my “child.xml” like you told “Hoang” above or is it more involved than that? I’m kind of new to the whole ExpandableListView thing. I tried just creating a new string array for each group in “strings.xml” and then referencing each one individually in the ExpandableListActivity class, but it didn’t seem to work.

2) I’ve been researching for quite awhile now how to change to another imageview when a ExpandableListView button is clicked(like in the image link I attached above), I’ve been trying to apply different examples to your code, but I haven’t been able to make this work yet either.

Any suggestions on either of these things or help that you could offer would be deeply appreciated. Thank you for your time and for this awesome source code! 🙂

UPDATE: Ok, it was literally like only a few minutes after I wrote my last questions that I figured out how to change the group’s icon image on a button click when I found this simple example here: https://groups.google.com/forum/?fromgroups=#!topic/android-developers/r1NpzmBxvx4 It took about 2 minutes to apply and it worked like a charm. I’m still lost on the process of adding multiple children under each group though if you have any solutions, I would be super grateful. THANK YOU!!! 😀