java - ListView "onPopulate" Listener? -
I want to set an initial scroll state in a ListView.
I thought I can do this by calling When the list view itself is populated, then can I change the scroll, as can be reported? OK, then I can change the code on I tried to do everything then, and the ways to work for override were In fact, the No matter what type of solution you choose, you still need to work manually about the problem of scrolling methods. list.setSelectionFromTop after
adapter.notifyDataSetInvalidated , but certainly notify the list view only later And the actual population can be later.
onFinishInflate and
onSizeChanged Tried it, but they did not work. Worked later, if the number changed, if the number had changed, but otherwise the data was changed.
onFinishInflate and
onSizeChanged . They are also called on scrolling.
ListView s
layout is the last line in the call to call
invokeOnItemScrollListener , so it is detected You do not need to extend
ListView , but you can only set one
onScrollListener .
Comments
Post a Comment