Assigned
Status Update
Comments
ma...@gmail.com <ma...@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.
ma...@gmail.com <ma...@gmail.com> #3
[Comment deleted]
ma...@gmail.com <ma...@gmail.com> #4
I found the same problem in suport library v4, wrong align happens only when ViewPager has a page margin > 0.
Description
AppCompatResources.getColorStateList() returns incorrect ColorStateList in Android 13. The background color of components is slightly incorrect in Android 13.
AppCompatResources.getColorStateList() returns correct ColorStateList in Android 12L, 14, and 15.
See also:https://github.com/material-components/material-components-android/issues/4293
Component used: AppCompatResources
Version used: 1.7.0
Devices/Android versions reproduced on: Android 13
If this is a bug in the library, we would appreciate if you could attach: