Comments (11)
可否贴个图,没图不知道咋回事 @yugai
from slideback.
from slideback.
用在了其他项目?手机型号是啥?是不是有虚拟按键 @yugai 或者直接加我qq 377793729 我看看什么问题
from slideback.
这个是为了测试和5.0动画是否有冲突。 所以导入到https://github.com/lgvalle/Material-Animations这个项目中试用了下。 手机是红米note3. 没有虚拟按键。
from slideback.
好的 多谢 @yugai
from slideback.
问题知道出在哪了,应该是动画还未执行完就attach到滑动布局了,在onWindowFocusChanged这时候初始化再去attach它就没问题了,剩下的还有状态栏颜色问题是个大坑
`
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
if (hasFocus && slideBackLayout == null) {
slideBackLayout = SlideBackHelper.attach(this, MyApplication.getActivityHelper(),
new SlideConfig.Builder().rotateScreen(true).edgeOnly(false).lock(false).edgePercent(0.1f).slideOutPercent(0.5f).create(), null);
}
}
`
from slideback.
from slideback.
恩 已看。 滑动返回在Android上确实是个坑,设置透明背景思路简单但会失去原有属性。不设置背景坑更多了。加油吧。
from slideback.
实验性的项目,抛开实用性不说,最重要是换一种思路解决问题,即使达不到效果也能从中涨不少知识,过程也很重要,我是这样想的 @yugai
from slideback.
恩 我自己也在寻求一种 最合适的滑动返回库。 目前发现的最好的就是不用拖动动画,判断手势返回。 这种能达到简单的易用性。同时能够丝毫不影响其他功能,例如Activity共享动画。但是不够完美主义。 当然很庆幸有一群能够研究并开源的人。
from slideback.
IOS自带这东西,安卓虽说有返回键,但是这个功能对大屏幕真是很实用,如果微信能开源就好了,估计微信做的相当好
from slideback.
Related Issues (20)
- 请问如何导入? HOT 1
- 返回后会在上一个界面add 一个view 导致界面过度绘制 HOT 1
- 给webview加侧滑导致webview顶部被遮住一部分 HOT 1
- 希望作者能上传jcenter,对这个库很感兴趣,希望能共同帮助维护 HOT 1
- 当activity有倒计时控件时,界面滑动会不停闪烁,怎么解 HOT 6
- 列表页快速上滑的时候,很容易关闭页面,几率很高的。 HOT 12
- 当添加滑动监听时,上级页面列表数据回顶部(5个手机3个存在问题),或者初始化上级页面ui HOT 1
- 当页面内有视频播放时,侧滑会出现一抖一抖的异常
- SlideBackHelper的attach该出偶尔导致crash HOT 14
- 与ViewPager的事件冲突
- 侧滑返回上一个页面后会闪回一次
- 侧滑返回后无法用openDrawer打开抽屉,会导致锁死
- 怎么引入到工程中呢? HOT 2
- 边缘长按有时会闪回去 HOT 2
- 边缘斜向上侧滑可以不让它返回吗 HOT 3
- return (ViewGroup) activity.getWindow().getDecorView() java.lang.NullPointerException HOT 10
- 我大概知道怎么处理沉浸式状态栏问题了 HOT 1
- CacheDrawView存在StackoverflowError的问题 HOT 1
- 滑动到某个位置的时候停留闪回去 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slideback.