I have a dimen specified in values/ and values-w600dp/ because I would like an icon to be wider on very wide screens.
values/
<dimen name="myIconWidth">32dp</dimen>
values-w600dp/
<dimen name="myIconWidth">48dp</dimen>
layout/
<ImageButton android:layout_width="@dimen/myIconWidth" ...
However, I am currently manually handling the orientation change:
Manifest:
android:configChanges="orientation|..."
Therefore, the layout_width still uses the (potentially incorrect) old value after the orientation change.
How best to update the layout_width (presumably in the onSizeChanged() method)?