-
Notifications
You must be signed in to change notification settings - Fork 41
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
能否支持将view放在屏幕右侧呢? #4
Comments
我按照 slideBackIconView 代码改写了一份可以放在右侧的view(rightSlideBackIconView),但是卡在 container.addView(rightSlideBackIconView); 这个view 无法紧贴右侧屏幕,一直在左侧。请问下能则呢么解决? |
@wizos PS:个人感性上不喜欢margin属性(开发人员选项-显示布局边界,margin属性是红色的,看着很刺眼),所以我不是很推荐使用margin。但目前也想不到更好的方案,如果您需要此功能,可以试一下。 |
请问怎么加 margin 呢?我使用以下代码,但是不生效。 lp.setMargins(screenWidth-viewWidth,0,0,0); rightSlideBackView.setLayoutParams(lp); container.addView(rightSlideBackView,lp);` |
参考此方法 SlideBack/slidebacklib/src/main/java/com/parfoismeng/slidebacklib/SlideBackManager.java Lines 126 to 138 in 06a48d4
|
最近沉迷塞尔达难以自拔。。 |
哈哈,前段时间我也沉迷这个。先谢谢了。 |
@senRsl |
@senRsl |
@senRsl @wizos |
想利用该库实现一个类似viewpager的左右滑的效果,不知道能否支持?
The text was updated successfully, but these errors were encountered: