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

你好,更换Android导航切换动画具体是如何做呢? #169

Open
maozhengjun opened this issue Jul 8, 2020 · 6 comments
Open

Comments

@maozhengjun
Copy link

我看了之前的issue,我将里面的xml文件放到我的项目的anim文件之后还需要改啥嘛?因为我放到项目里面之后动画没有改变

现在它们都是从右往左打开页面

Android 如果需要自定义动画,直接在自己的项目中,使用和本库同名的动画文件就可以覆盖默认的效果。

https://github.com/listenzz/AndroidNavigation/tree/master/navigation/src/main/res/anim

Originally posted by @listenzz in #13 (comment)

@maozhengjun
Copy link
Author

默认的Android导航切换动画感觉有卡顿似得,不知道是不是动画的问题还是啥原因,我的手机是魅族,系统设置里面切换页面挺流畅的😭

@listenzz
Copy link
Owner

listenzz commented Jul 8, 2020

@aaronmaomao 需要修改这些动画效果成为你想要的

@maozhengjun
Copy link
Author

使用和本库同名的动画文件就可以覆盖默认的效果
这个本库的名字是啥名字😰

@listenzz
Copy link
Owner

listenzz commented Jul 9, 2020

@aaronmaomao 就是动画文件名,你 copy 文件过去,就不用改文件名了,改文件里面的动画效果即可

@maozhengjun
Copy link
Author

这样就可以了嘛?我放进去后切换导航还是没变化😭
image

@maozhengjun maozhengjun changed the title 你好,Android具体是怎么做呢? 你好,更换Android导航切换动画具体是如何做呢? Jul 9, 2020
@listenzz
Copy link
Owner

参看 #189 ,现在可以很好地支持自定义转场动画了

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

2 participants