java - Android SimpleExpandableListAdapter display parent, even if child - empty -


i have such java code:

simpleexpandablelistadapter explistadapter =                         new simpleexpandablelistadapter(                                 this,                                 contactlist,                                               r.layout.bank_exchanger_list_element,                                              new string[] { tag_name, tag_location_name, tag_address, tag_exchanger_type_name, tag_latitude, tag_longitude },                                 new int[] {                                         r.id.bank_e_n, r.id.nas_punkt_e_n , r.id.adress_obm_e_n , r.id.tip_obm_e_n , r.id.shirota_e_n , r.id.dolgota_e_n },                                    result,              //something goes here                                 r.layout.exchanger_currencies,                                              new string[] {tag_exchanger_curr_value, tag_currency_list_name, tag_direction_of_exchange_name},                                       new int[] { r.id.currencyvalue_e_n, r.id.currency_list_name_e_n, r.id.direction_of_exchange_e_n}                                 );                         setlistadapter( explistadapter );   

but main trouble me result variable empty, , see nothing: both parent , child...

but how can if children empty display parent's in expandablelistadapter? doesnt display( - empty

i try write: if (result != null){ .... else.... didn't helped me

(also i'm parsing json object has childrens)


Comments