-
Notifications
You must be signed in to change notification settings - Fork 102
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
开启ios效果后,再设置不同背景,出现了问题 #9
Comments
确实是,因为要动态改变一个View的宽度在android里是有开销的,所以其实将背景颜色和content设为一样的是最简单的。 |
有思路吗?如果要动态改变meunVIew里面子项的宽度.需要在哪些方法进行操作呢? |
设置view的layoutparam呗,但我觉着可以曲线救国,比如把background设置为按钮的相同的背景色,看起来的效果应该是一样的 |
哈哈.我们产品将contentView设置了成了半透明的背景.所以现在需要对其就行改造一番.是要在onViewPositionChanged这个方法里面动态改变child layoutparam吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个图片
在 clampViewPositionHorizontal方法里面只是处理了contentView的width,而不是真正的在滑动的过程中改变menuView的宽度.这个要怎么处理呢?
The text was updated successfully, but these errors were encountered: