I gave android:configChanges="orientation|keyboard"
to my activity in manifest and when I rotate my device, onConfigurationChanged
is always called. No problem with it.
What I want is when device is rotated, font size of widget become changed.
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="@dimen/my_font_size" />
Like above, textSize
attribute refer the value in resource
and the xml file defining my_font_size
is in values-land, values-port folders.
Ok. I'm ready. Build it, run it, and rotate the device, and there is no change. requestLayout() in onConfigurationChanged() doesn't work. Any advise about it?
Thanks.