Sunday, 15 May 2011

java - Get unique identifier for view in ExpandableList Android -



java - Get unique identifier for view in ExpandableList Android -

i want create arraylist or map holds checked state of childview. in order need unique identifier each view.

i tried view.getid() returned -1 every row in list. tried childposition gets repeated within every group.

example:

a1 = 0 a2 = 1 b1 = 0

the thing see combination of groupposition , childposition unless else knows of else. there way create map or arraylist contains accessible index of 2 separate integers?

or way combine childposition , groupposition 1 unique identifier can utilize each childview?

a way combine both integers ?

string identifier = groupposition + "-" + childposition; //which id of hashmap<string, boolean> checkedelements = new hashmap<string, boolean>();

i'm afraid there nil magic.

java android map expandablelistview

No comments:

Post a Comment