I'm Houjun Yuan, currently a freelancer.
I'm good at JavaEE, Android, Flutter, and a little Web, iOS.
If you want to contact me, email me, please.
Languages and Tools:
Blog: Feng Ouyang Office
Video tutorial: Kotlin Beginner Tutorial
使用Snake,Android也可以轻松实现类iOS侧滑返回效果
Home Page: http://www.youngfeng.com
License: Apache License 2.0
I'm Houjun Yuan, currently a freelancer.
I'm good at JavaEE, Android, Flutter, and a little Web, iOS.
If you want to contact me, email me, please.
Languages and Tools:
Blog: Feng Ouyang Office
Video tutorial: Kotlin Beginner Tutorial
使用旧版或最新版本(0.3.2),在列表页面(使用RecycleView)或者webView页面,首次下拉操作会卡一下,后续正常。使用SnakeWebView同样存在。测试demo中同样存在该问题。请问下目前有什么解决办法吗?
RT
在三星 S8上滑动返回有些问题,不灵敏,而且没有滑动渐变效果了
#7024 java.lang.NullPointerException
Attempt to invoke virtual method 'int android.view.View.getImportantForAccessibility()' on a null object reference
com.youngfeng.snake.view.SnakeHackLayout.onLayout(SnakeHackLayout.java:268)
#28304 java.lang.IndexOutOfBoundsException
Index: 2, Size: 0
com.youngfeng.snake.view.SnakeHackLayout.dispatchTouchEvent(SnakeHackLayout.java:4)
复现方式:
1.app中有使用 SurfaceView,例如播放器之类的;
2.右滑返回时滑到一半松手释放,界面回到原位后,播放器界面就黑屏了;
有可能是页面重新加载后mActivityStack中数据丢失了
SnakeHackLayout DEFALT_RELEASE_FACTOR 需要增加定义修改,能否增加在snake.xml 增加配置字段
使用小米8测试。使用我的APP打开若干Activity后切换到后台-->打开其他APP-->返回我的APP。有一定概率出现,所在的Activity里面的全部的空间都变成透明的情况。
您好,因为现在使用snake之后,滑动返回上一个页面fragment没有生命周期的回调,导致我没办法在onResume的时候刷新界面。请问如何使用dragListener监听滑动事件。
能提供APK下载进行体验吗
1.在滑动关闭过程中按下系统的返回键会出现卡死状态;
2.加上EnableDragToClose注解后打开和退出activity动画会随机播放
如题,楼主可以考虑适配Android Q和Android X
左划关闭:从右往左划
全屏滑动关闭:不需要在边缘滑动才能关闭
好奇原理,另外希望做到全屏右划返回,目前在边缘的滑动还是用户体验不足😁
如果BaseFragment继承的是Fragment是继承android.app.Fragment无法正常侧滑关闭
有什么解决方法吗
闪烁还比较严重
Hi, I really like this library. And I wonder how to expand the sliding area. Is there any way to support it? Thanks.
能够动态设置关闭与否吗?
如题,当滑动页面时,轮播图切换图片时,会立刻恢复原状.
FAILURE: Build failed with an exception.
Could not resolve all files for configuration ':app:kapt'.
Could not find com.youngfeng.android:snake-compiler:0.3.2.
Searched in the following locations:
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/m2repository/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.pom
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/m2repository/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.jar
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/google/m2repository/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.pom
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/google/m2repository/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.jar
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/android/m2repository/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.pom
file:/C:/Users/Administrator/AppData/Local/Android/Sdk/extras/android/m2repository/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.jar
https://dl.google.com/dl/android/maven2/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.pom
https://dl.google.com/dl/android/maven2/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.jar
http://maven.aliyun.com/nexus/content/groups/public/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.pom
http://maven.aliyun.com/nexus/content/groups/public/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.jar
https://jcenter.bintray.com/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.pom
https://jcenter.bintray.com/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.jar
https://jitpack.io/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.pom
https://jitpack.io/com/youngfeng/android/snake-compiler/0.3.2/snake-compiler-0.3.2.jar
Required by:
project :app
现在国内很多厂家都添加了暗黑模式,为了匹配暗黑模式我的app简单的分了一个白天和黑夜主题,使用settheme设置主题,这样就可以根据条件来更换主题。
现在问题就是开启滑动返回之后,本来之前安卓默认的暗黑主题下,很多控件布局都是灰色或者黑色,变成的白天主题的默认白色,这和设计并不相符。再就是状态栏,无论我怎么修改style的颜色属性,开启了滑动返回的页面状态栏始终都是白天主题的状态栏颜色
您好,如何监听页面是通过滑动关闭了,比如我想setResult,是否能提供一个滑动关闭的监听。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.