Pramod,
As far as I can remember, you are using SimpleCursorTreeAdapter. If so,
you shouldn't have to override anything.
The constructor takes layout ids, different ones for collapsed group,
expanded group, non-last child, and last child.
Check what you're using for these parameters. Create distinct layouts in
XML (with different background colors, by using android:background) and
use them when constructing the adapter.
-- Kostya
17.12.2010 9:03, pramod.deore пишет:
Hi, How to resolve this error and what should I write into
getChildView()
On Dec 17, 9:43 am, "pramod.deore"<[email protected]> wrote:
Hi Metal and TreKing
But when I call super as
View v = super.getChildView(groupPosition, childPosition, isLastChild,
convertView, parent);
But here ExpandableListActivity doesn't have this method. Therefore it
gives syntax error.
On Dec 17, 9:32 am, TreKing<[email protected]> wrote:
On Thu, Dec 16, 2010 at 10:14 PM, pramod.deore<[email protected]>wrote:
But when I from where should I call this method and what parameter should I
pass at the time of calling this method.
You don't call this method - the system calls it for you when it's time to
draw your Views. Just worry about updating your View accordingly and it
should just work.
Also make sure to call "super", otherwise you're going to go into an
infinite recursion and blow your stack.
-------------------------------------------------------------------------------------------------
TreKing<http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en