java - ListView "onPopulate" Listener? -


I want to set an initial scroll state in a ListView.

I thought I can do this by calling list.setSelectionFromTop after adapter.notifyDataSetInvalidated , but certainly notify the list view only later And the actual population can be later.

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 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.

I tried to do everything then, and the ways to work for override were onFinishInflate and onSizeChanged . They are also called on scrolling.

In fact, the 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 .

No matter what type of solution you choose, you still need to work manually about the problem of scrolling methods.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -