Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Vertical scroll #10

Closed
4tee opened this issue May 2, 2013 · 7 comments
Closed

Vertical scroll #10

4tee opened this issue May 2, 2013 · 7 comments

Comments

@4tee
Copy link

4tee commented May 2, 2013

Hi, I found this library is so simple, light and easy to integrate. I am wondering how I can make it scrollable vertically in the sliding layer. Do I have to wrap in the scroll view? Thanks.

@JlUgia
Copy link
Contributor

JlUgia commented May 2, 2013

Both ways could work (scrollView ListView) or any view that comes from them. Just merge those inside of the container and you'll be good to go.

@4tee
Copy link
Author

4tee commented May 3, 2013

I tried to embed the scrollview inside the sliderlayer container. It seems to be problematic when i try to press the button (inside scrollview) or drag the scrollview horizontally by sliding to close. I tried to use dispatchTouchEvent to let the slidinglayer onTouch event to consume. It works in android 4.2, but it has problem in 2.2.1. Any way to make the slidinglayer scrollable in its library?
Thanks!

@JlUgia
Copy link
Contributor

JlUgia commented May 3, 2013

You shouldn't need to do any of that. We've used both ScrollView and ListView with the SlidingLayer and everything works as expected on ICS and pre-ICS.
If you still have issues, share your layout so that others can give it a try, but again, no secret on that.

ie.: We use:

SlidingLayer
RelativeLayout
Some content
/RelativeLayout
ListView/
/SlidingLayer

I tried to embed the scrollview inside the sliderlayer container. It seems to be problematic when i try to press the button2 or drag the scrollbar horizontally to slide. I tried to use dispatchTouchEvent to let the slidinglayer onTouch event to consume. It works in android 4.2, but it has problem in 2.2.1. Any way to make the slidinglayer scrollable in its library?
Thanks!


Reply to this email directly or view it on GitHub.

@4tee
Copy link
Author

4tee commented May 3, 2013

Thank you. I have uploaded into my git for the problematic android project. It is called

https://github.com/4tee/slidinglayer_scrollbar_testing

Basically, the problem is when there is scrollview, the dragging to close the sliding layer is not working in ICS. In my another andorid 2.2.1 device, the scrollview child is not responsive too.

@JlUgia
Copy link
Contributor

JlUgia commented May 3, 2013

Hello!
You were right!
There was a small method for which the right and middle modes were not taken into account. Get the last update I just pushed (1e34433) and try it, but I already tested it with your project and seems to work nice.
:)

@JlUgia
Copy link
Contributor

JlUgia commented May 3, 2013

Please, send your feedback when you've tested that it actually works.

@4tee
Copy link
Author

4tee commented May 4, 2013

Prefect.. It works! Thanks a lot. 💯 %

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

No branches or pull requests

2 participants