I am trying to make a view to recalculate its dimensions on demand. I have a view that uses a width and/or height with the value of ?attr:actionBarSize
(it can be any variable that changes according to the screen orientation), but once the view is drawn after launching the app that view will never re-calculate again that value based on the screen orientation after the user rotates the screen.
Is it possible to force the view to recalculate its dimensions by reading the new value or is this possible by creating a custom view that can allow this to be done and causing all of its child views to recalculate their dimensions based on the parent view changes?
Forgot to include an important detail; the Activity cannot be restarted and recreate()
cannot be used.