android - Force Activity to redraw the full layout on Orientation Change -


i force activity redraw layout on orientation change. don't want restart activity though. know have override onconfigurationchanged callback orientation change. 1 way know of doing call setcontentview again same layout. there better way force redraw of activity layout ?

please add following line

android:configchanges="keyboardhidden|orientation|screensize"

in androidmenifest in activity tag.

it may work.


Comments

Popular posts from this blog

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -