What does your XML layout look like? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware
On Fri, Mar 16, 2012 at 4:30 PM, Antonio Diaz <[email protected]> wrote: > I'm doing an expandable list in android with checkbox, I did correctly > this, but now I'd like that some checkbox appear checked (on true). I > did something, but it isn't right becouse the findviewbyid return > null. I follow this example > http://mylifewithandroid.blogspot.com/2010/02/expandable-lists-and-check-boxes.html > > I did it : > > private List createChildList() { > > ArrayList result = new ArrayList(); > > // /* each group need each HashMap-Here for each group we have 3 > // subgroups */ > secList = new ArrayList(); > for (UserDetail user : userList) { > > HashMap child = new HashMap(); > child.put("Sub Item", user.getName()); > Log.e(ScrumConstants.TAG, "---- " + user.getName()); > chekbox = (CheckBox) findViewById(R.id.check1); > chekbox.toggle() > secList.add(child); > } > > Can someone help me? > > -- > 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 -- 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

