Assigned
Status Update
Comments
mt...@gmail.com <mt...@gmail.com> #2
I face with the same problem. I have different pageMargin in landscape and portrait and when viewpager is scrolled for the more than first position, after rotating device it is shifted.
I beleive the problem is inside onSizeChanged that is called after onConfigurationChanged, it has following code:
if (w != oldw) {
recomputeScrollPosition(w, oldw, mPageMargin, mPageMargin);
}
w always not equals oldw when changing orientation, so recomputeScrollPosition is called, but whit the same values for margin and oldMargin.
This should be fixed.
I beleive the problem is inside onSizeChanged that is called after onConfigurationChanged, it has following code:
if (w != oldw) {
recomputeScrollPosition(w, oldw, mPageMargin, mPageMargin);
}
w always not equals oldw when changing orientation, so recomputeScrollPosition is called, but whit the same values for margin and oldMargin.
This should be fixed.
Description
Component used: ActionBar Version used: 1.6.1 and 1.6.1 Devices/Android versions reproduced on: Emulator API 34 and API 32
With an item appearing in a menu
and checkable_menu_item_color defined as
The menu is inflated in an AppCompatActivity's onCreateOptionsMenu with
state_checked does not work. The result is as in attached image.
state_enabled works correctly.