Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 07-06-2010, 05:12 PM   #1
New Member
 
Join Date: Jul 2010
Posts: 1
Friends: 0
View superseed77's Profile   View superseed77's Photo Album   View superseed77's Blog   View Social Groups
Hi all

I'm pretty new in android dev but I crawled forums and I still can't find any clear answer to this question:

How to do an expandable list where the indicator arrow to expand the list is hidden if there's no child

In my project I also need to expand when ones click on the arrow (if exits) but call an another activty when ones click on the title of the Item

0


I've created my own expander_group.xml
with

item
android:state_expanded="true"
android:state_empty="true"
android:drawable="@drawable/empty"


and set it up in my ExpandableListActivity

Drawable icon = this.getResources().getDrawable(R.drawable.expande r_group);
getExpandableListView().setGroupIndicator(icon);

Icon are loaded but no empty icon in front of empty group till I tried to expand it. When I click on it it actually disapear as it should be


Someone told me about BaseAdapter and writing all the views by hand

What is the best way to acheive that : no icon for empty groups and
title of the group clickable




Please Help!
superseed77 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show another List View ‘B’ after clicking List View ‘A’ soclose Android Development, Answers, Tutorials, and Code Snippets 0 04-04-2010 08:36 AM
Full App List lainie5182 Android Games And Applications 1 11-01-2009 05:22 PM
Expandable List Help! Destroythenseek Android Development, Answers, Tutorials, and Code Snippets 4 03-19-2009 04:59 PM
Add EditText with backgroundtxt to child of Expandable list? Timo Android Development, Answers, Tutorials, and Code Snippets 1 02-21-2009 09:17 PM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 05:19 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.