java - Call methods that usually gets called on new screen orientation -
i working on android project right has been written else. noticed bug code requests new screen orientation, not because needed, because views needs repositioned due settings.xml new positions.
now wondering methods called when screen orientation changed? tried each view needs drawn , invalidate it, because thought result in view being redrawn, didn't change positioning of view.
i did this:
int[] viewids = {r.id.fooview, r.id.barview}; (int i=1; i<viewids.length; i++) { view v = findviewbyid(viewids[i]); v.invalidate(); } what correct way reposition views after new position details loaded xml?
Comments
Post a Comment