0

There is two methods in ExpandableListView?

getSelectedId()
    Gets the ID of the currently selected group or child.
getSelectedPosition()
    Gets the position of the currently selected group or child (along with its type).

We always use the getSelectedPosition. I'm curious about When we should use the getSeletedId? What can we do using the ID?

Thank you!!

1

1 Answer 1

0

When you will use CursorTreeAdapter (adapter based on the database) getSelectedId will return the id of the record in the database.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.