[android-developers] Re: Customize layout of ExpandableListView

2008-12-18 Thread luke
Hi mscwd01, It is works great, thanks very much. but what about extends BaseExpandableListAdapter ? Maybe i should provide a ImageProvider for the dynamic image binding. Thanks again :) On Dec 18, 8:10 pm, mscwd01 wrote: > Hey Luke, > > Sure, I managed to solve it myself after several tedious h

[android-developers] Re: Customize layout of ExpandableListView

2008-12-18 Thread mscwd01
Hey Luke, Sure, I managed to solve it myself after several tedious hours ;) It took a trip to the Android source code to get a working solution though, here it goes. What I wanted to achieve was to have my own layout for each child in an expandable list. E.g. I wanted to define two TextViews and

[android-developers] Re: Customize layout of ExpandableListView

2008-12-18 Thread Luke w
Hi mscwd01, How about the result ? could you give some comment ? BR, Luke Wang Jay London - "I was going to buy a book on hair loss, but the pages kept falling out." On Tue, Dec 16, 2008 at 12:11 AM, mscwd01 wrote: > > Brilliant! Thanks for taking the time to show me this. > > I'll have a pla

[android-developers] Re: Customize layout of ExpandableListView

2008-12-15 Thread mscwd01
Brilliant! Thanks for taking the time to show me this. I'll have a play and see what I come up with :) On Dec 15, 2:01 pm, "Gnanesh Radhakrishnan" wrote: > Sorry... you include dynamic images also to the textview. > Please refer to setCompoundDrawablesWithIntrinsicBounds method. This might > he

[android-developers] Re: Customize layout of ExpandableListView

2008-12-15 Thread Gnanesh Radhakrishnan
Sorry... you include dynamic images also to the textview. Please refer to setCompoundDrawablesWithIntrinsicBounds method. This might help. http://code.google.com/android/reference/android/widget/TextView.html#setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable,%20android.gra

[android-developers] Re: Customize layout of ExpandableListView

2008-12-15 Thread Gnanesh Radhakrishnan
Hey, You can use a SimpleExpandableListAdapter to achieve this. SimpleExpandableListAdapter expListAdapter = new SimpleExpandableListAdapter( this, createGroupList(),// groupData describes the first-level entries R.layout.group_row,

[android-developers] Re: Customize layout of ExpandableListView

2008-12-15 Thread mscwd01
Having had a further look, im not sure if an ExpandableListView can allow me to customize its appearance. Is there another way to do this? On Dec 15, 1:12 am, mscwd01 wrote: > Hey, > > Is it possible to customize the layout/appearance of a > ExpandableListView? > > I wish to: > > - Give parents