Giter Site home page Giter Site logo

Comments (11)

oubowu avatar oubowu commented on June 18, 2024

可否贴个图,没图不知道咋回事 @yugai

from slideback.

yugai avatar yugai commented on June 18, 2024

device-2016-10-26-215417

from slideback.

oubowu avatar oubowu commented on June 18, 2024

用在了其他项目?手机型号是啥?是不是有虚拟按键 @yugai 或者直接加我qq 377793729 我看看什么问题

from slideback.

yugai avatar yugai commented on June 18, 2024

这个是为了测试和5.0动画是否有冲突。 所以导入到https://github.com/lgvalle/Material-Animations这个项目中试用了下。 手机是红米note3. 没有虚拟按键。

from slideback.

oubowu avatar oubowu commented on June 18, 2024

好的 多谢 @yugai

from slideback.

oubowu avatar oubowu commented on June 18, 2024

问题知道出在哪了,应该是动画还未执行完就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.

oubowu avatar oubowu commented on June 18, 2024

@yugai

from slideback.

yugai avatar yugai commented on June 18, 2024

恩 已看。 滑动返回在Android上确实是个坑,设置透明背景思路简单但会失去原有属性。不设置背景坑更多了。加油吧。

from slideback.

oubowu avatar oubowu commented on June 18, 2024

实验性的项目,抛开实用性不说,最重要是换一种思路解决问题,即使达不到效果也能从中涨不少知识,过程也很重要,我是这样想的 @yugai

from slideback.

yugai avatar yugai commented on June 18, 2024

恩 我自己也在寻求一种 最合适的滑动返回库。 目前发现的最好的就是不用拖动动画,判断手势返回。 这种能达到简单的易用性。同时能够丝毫不影响其他功能,例如Activity共享动画。但是不够完美主义。 当然很庆幸有一群能够研究并开源的人。

from slideback.

oubowu avatar oubowu commented on June 18, 2024

IOS自带这东西,安卓虽说有返回键,但是这个功能对大屏幕真是很实用,如果微信能开源就好了,估计微信做的相当好

from slideback.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.