BGASwipeBackLayout-Android
BGASwipeBackLayout-Android copied to clipboard
Android Activity 滑动返回。支持微信滑动返回样式、横屏滑动返回、全屏滑动返回
反复打开一个页面多次会报OOM,报错如下,在删除BGASwipeBackLayout以后会解决,因此可以确定这个错误是由BGASwipeBackLayout引起的,麻烦您看一下 java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference at android.graphics.Bitmap.createBitmap(Bitmap.java:789) at android.graphics.Bitmap.createBitmap(Bitmap.java:757) at cn.bingoogolapple.swipebacklayout.BGASwipeBackShadowView.getBitmap(BGASwipeBackShadowView.java:187) at cn.bingoogolapple.swipebacklayout.BGASwipeBackShadowView.unBindPreActivity(BGASwipeBackShadowView.java:154) at cn.bingoogolapple.swipebacklayout.BGASwipeBackLayout.dispatchOnPanelOpened(BGASwipeBackLayout.java:483) at cn.bingoogolapple.swipebacklayout.BGASwipeBackLayout$DragHelperCallback.onViewDragStateChanged(BGASwipeBackLayout.java:1512) at android.support.v4.widget.ViewDragHelper.setDragState(ViewDragHelper.java:881) at android.support.v4.widget.ViewDragHelper$2.run(ViewDragHelper.java:338)...
是什么原因?有办法解决吗
For Samsung when hiding or showing the navigation bar, its height is considered erroneously
java.lang.StackOverflowError at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5745) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at android.view.ViewGroup.resetResolvedLayoutDirection(ViewGroup.java:5751) at...
手机是小米5s,Android API 24 侧滑回来后,无法通过drawerLayout.openDrawer(Gravity.END)这句代码打开抽屉,通过手指侧滑拉出抽屉倒是没问题,但是通过那句代码就只能显示一层半透明的背景
设置右滑动返回:StatusBarUtil.setColorForSwipeBack(this, color, statusBarAlpha); 华为p20 Android 9.0 横屏后界面显示不完整。有解决方法没?
作者是怎么做到在拖动SwipeLayout时让状态栏的背景颜色也跟着移动呢?看其他的滑动返回库状态栏都不会移动,自己实现的也不会移动。求教