Edit layout_simple_..._1 and set a background. Leave layout 2 as is. -- Kostya Vasilyev -- http://kmansoft.wordpress.com 17.12.2010 12:02 пользователь "pramod.deore" <[email protected]> написал: > Hi Kostya, Thanks for your suggestion but still I am not understand > what you mean. It is possible to you make change in my code it is > posted above. Or if don't have time then please explain bit > more.Thanks > > On Dec 17, 1:23 pm, Kostya Vasilyev <[email protected]> wrote: >> 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
-- 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

