ShineButton
ShineButton copied to clipboard
when it used on Android P,the ring was out of position
on Android P button like this.
I am facing the same issue, did you find out the solution?
In my case, this happens when the keyboard is visible: screenrecord_1551263186.mp4.zip
I am facing the same issue, did you find out the solution?
No, I ended up animating the button myself.
This is not a problem with Android p, but a problem with a full-screen phone, failing to get the exact height of a full-screen phone. bottomHeight = metrics.heightPixels - location[1];
This is not a problem with Android p, but a problem with a full-screen phone, failing to get the exact height of a full-screen phone. bottomHeight = metrics.heightPixels - location[1];
how do you fix this problem?
I think I know why.because no consideration was given to the bottom navigation bar,but shineView showAnimation method isTranslucentNavigation(shineButton.activity)
if (isTranslucentNavigation(shineButton.activity)) { if (isFullScreen(shineButton.activity)) { centerAnimY = visibleFrame.height() - shineButton.getBottomHeight(false) + btnHeight / 2; } else { centerAnimY = visibleFrame.height() - shineButton.getBottomHeight(true) + btnHeight / 2; } } else { centerAnimY = location[1] + btnHeight / 2; } No problems have been found so far.
Resolved this issue?
This is not a problem with Android p, but a problem with a full-screen phone, failing to get the exact height of a full-screen phone. bottomHeight = metrics.heightPixels - location[1];
This is correct, my device is rooted and customized. I force it to fullscreen so that navigation and status bar are both immersive. By that the shine and ring was out of the position.
This is not a problem with Android p, but a problem with a full-screen phone, failing to get the exact height of a full-screen phone. bottomHeight = metrics.heightPixels - location[1];
This is correct, my device is rooted and customized. I force it to fullscreen so that navigation and status bar are both immersive. By that the shine and ring was out of the position.
Should you use 1.0.0 version to test this problem?I changed calculate location method.
This is not a problem with Android p, but a problem with a full-screen phone, failing to get the exact height of a full-screen phone. bottomHeight = metrics.heightPixels - location[1];
This is correct, my device is rooted and customized. I force it to fullscreen so that navigation and status bar are both immersive. By that the shine and ring was out of the position.
Should you use 1.0.0 version to test this problem?I changed calculate location method.
I tested it on Android P. I was having this problem before since I hid the navigation bar. Your fix works! Thank you very much.