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
Post a Comment