You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
------------------ 原始邮件 ------------------
发件人: "luckybilly/SmartSwipe" ***@***.***>;
发送时间: 2023年4月14日(星期五) 晚上6:40
***@***.***>;
***@***.***>;
主题: [luckybilly/SmartSwipe] 小米12手机android13,登陆页面登录完成后finish当前页面并且立马跳转目标页面,目标页面侧滑退出会出现叠影 (Issue #98)
设备:小米12手机android13
依赖版本:
implementation 'com.billy.android:smart-swipe-x:1.1.0'
implementation 'com.billy.android:smart-swipe:1.1.2'
侧滑代码初始化(写在baseActivity中):
var mSwipeConsumer: SwipeConsumer? = null
var mSmartSwipeWrapper: SmartSwipeWrapper? = null
open fun initSwipeBackFinish() {
if (this !is MainActivity) {
val videoActivitySlidingBackConsumer = ActivitySlidingBackConsumer(this)
mSmartSwipeWrapper = SmartSwipe.wrap(this)
mSwipeConsumer = mSmartSwipeWrapper?.removeAllConsumers()
?.addConsumer(videoActivitySlidingBackConsumer)
?.setScrimColor(0x7F000000)
?.setEdgeSize(((ScreemUtils.getWidthInPx() / 3.0f).toInt()))
?.enableLeft()
}
}
操作步骤:
1.当前在(主页面)上
2.点击主页面中的某一个按钮,打算跳转到(目标页面A),但是因为打开(页面A)需要登录,所以最后跳转到了(登录页面).
3.在(登录页面)完成登录后,finish()(登录页面),并且跳转到(目标页面A)。
4.这时候我们已经在(目标页面A)了,手指侧滑退出(目标页面A)出现叠影
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
设备:小米12手机android13
依赖版本:
implementation 'com.billy.android:smart-swipe-x:1.1.0'
implementation 'com.billy.android:smart-swipe:1.1.2'
侧滑代码初始化(写在baseActivity中):
var mSwipeConsumer: SwipeConsumer? = null
var mSmartSwipeWrapper: SmartSwipeWrapper? = null
open fun initSwipeBackFinish() {
if (this !is MainActivity) {
val videoActivitySlidingBackConsumer = ActivitySlidingBackConsumer(this)
mSmartSwipeWrapper = SmartSwipe.wrap(this)
mSwipeConsumer = mSmartSwipeWrapper?.removeAllConsumers()
?.addConsumer(videoActivitySlidingBackConsumer)
?.setScrimColor(0x7F000000)
?.setEdgeSize(((ScreemUtils.getWidthInPx() / 3.0f).toInt()))
?.enableLeft()
}
}
操作步骤:
1.当前在(主页面)上
2.点击主页面中的某一个按钮,打算跳转到(目标页面A),但是因为打开(页面A)需要登录,所以最后跳转到了(登录页面).
3.在(登录页面)完成登录后,finish()(登录页面),并且跳转到(目标页面A)。
4.这时候我们已经在(目标页面A)了,手指侧滑退出(目标页面A)出现叠影
The text was updated successfully, but these errors were encountered: