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