Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问低版本手机左滑正常,高版本左滑会出现透明,请问怎么解决 #89

Open
ningbo opened this issue Sep 21, 2015 · 4 comments

Comments

@ningbo
Copy link

ningbo commented Sep 21, 2015

请问低版本手机左滑正常,高版本左滑会出现透明,请问怎么解决

@ikew0ng
Copy link
Owner

ikew0ng commented Oct 1, 2015

这个问题我还没来得及查 sorry 节后看看

ningbo notifications@github.com于2015年9月21日 周一18:09写道:

请问低版本手机左滑正常,高版本左滑会出现透明,请问怎么解决


Reply to this email directly or view it on GitHub
#89.

@zhqchen
Copy link

zhqchen commented Oct 10, 2015

@ikew0ng 项目中的ViewDragHelper,为何不直接使用V4兼容包里的ViewDragHelper,不然随着Android新版本的发布,很容易出现高版本兼容性问题的。左滑透明应该也是出于这个原因。

@01100044093
Copy link

很奇怪的,我23编译的会出现楼主你说的问题,但我22编译的,在高版本手机左滑正常。

我查看了旧记录并且做了一个实验,结果非常有趣

#45

设置最低层的Activity的style为:

<item name="android:windowIsTranslucent">false</item>

其它的activity则设置为:

<item name="android:windowIsTranslucent">true</item>

通过这个方法可以讲解决这一个问题,但当我底层这样设置,并且finish了以后,这个效果就失效,我的次一层设置为FALSE后也无效。只有当我的最底层一直存在,这个方法才能有效,我尝试着消除我的底层后,再启动了他,又成功生效了,非常有趣.

我尝试用VIEWPAGE包装,只有VIEWPAGE设为了FALSE,最底层并没有设置且FINISH了他,结果也成功解决问题了
@ikew0ng

@ikew0ng
Copy link
Owner

ikew0ng commented Nov 26, 2015

因为我调整了一些代码 左滑透明应该与此无关 viewdrag里面只包含了检测手势的代码
chenyuzheng1989 notifications@github.com于2015年10月10日 周六17:32写道:

@ikew0ng https://github.com/ikew0ng
项目中的ViewDragHelper,为何不直接使用V4兼容包里的ViewDragHelper,不然随着Android新版本的发布,很容易出现高版本兼容性问题的。左滑透明应该也是出于这个原因。


Reply to this email directly or view it on GitHub
#89 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants