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

Is it possible to add swipe from left to right? #2

Open
maxixcom opened this issue Aug 27, 2019 · 6 comments
Open

Is it possible to add swipe from left to right? #2

maxixcom opened this issue Aug 27, 2019 · 6 comments
Labels
enhancement New feature or request

Comments

@maxixcom
Copy link

Hello,

@freeze-frames Thank you very much for you great work!
Could you tell me is it possible to add swipe from left to right with the same behavior it works from right to left?

@maxixcom maxixcom changed the title Is it possible to add swipe from left to right Is it possible to add swipe from left to right? Aug 27, 2019
@lzls
Copy link
Owner

lzls commented Aug 27, 2019

Do you mean that you need to swipe an item both from right to left and left to right?

@maxixcom
Copy link
Author

Do you mean that you need to swipe an item both from right to left and left to right?

Yes, exactly!

I've tried to do something like this to have menu from both sides:

<LinearLayout>


	<FrameLayout>
		<!-- Left side menu items -->
	</FrameLayout>
	

	<TextView/>


	<FrameLayout>
		<!-- Right side menu items -->
	</FrameLayout>


</LinearLayout>

But without luck. Maybe there is an option to reach the goal?

@lzls
Copy link
Owner

lzls commented Aug 28, 2019

No. Currently it only supports right side menu to a item layout in left-to-right direction and the left side menu you placed above has been just treated as a normal view (not a menu), so support for both side menus will need to take some time to expand and debug the view.

@maxixcom
Copy link
Author

Oh, thank you anyway. Unfortunately I'm newbie android developer but I'll try to understand how it works so may be I can add the function. Could you give me any clue where to start?

@lzls
Copy link
Owner

lzls commented Aug 28, 2019

onInterceptTouchEvent() -> onTouchEvent()
Most of the remaining functions are used within these two, from which you can choose some useful ones to take a look at just along the way.

@maxixcom
Copy link
Author

onInterceptTouchEvent() -> onTouchEvent()
Most of the remaining functions are used within these two, from which you can choose some useful ones to take a look at just along the way.

Thank you!

@lzls lzls added the enhancement New feature or request label Feb 11, 2021
Repository owner deleted a comment from ismoilov9922 Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants