android - listview onPrerender() or something like that -


i have custom control extends listview. want add custom code custom listview set selection , want once in code. there method on listview executed after onresume() of activity holds control.

i want centralize code in 1 place, listview method executes after method below:

@override     public void onresume()     {        super.onresume();          this._listitems.requestfocusfromtouch();         this._listitems.setselection(statemanager.getcurrentstate().getlastlistviewposition());      } 

the point don't have ot in every of on 100 screens have make change in custom listview.

thank in advance!

protected void ondraw(canvas canvas) {         super.ondraw(canvas);        this._listitems.requestfocusfromtouch();         this._listitems.setselection(mypositionfrommemory);      } 

the thing need watch out sorts , stuff. because if doing after listview loaded end selection @ top.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -