سؤال

I want to implement search functionality in multi level Expandable list view. The hierarchy should expand during Search has progressed.

Can anyone plz help me to do this?

Thanks in Advance.

هل كانت مفيدة؟

المحلول

for (int i = 0; i < list.size(); i++) {

            if (!list.get(i).isExpanded()
                    && list.get(i).getWrappedObject().getLevel() != 0) {
                list.get(i).toggle();
            }
        }
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top