SlidingItemMenuRecyclerView icon indicating copy to clipboard operation
SlidingItemMenuRecyclerView copied to clipboard

Is it possible to add swipe from left to right?

Open maxixcom opened this issue 5 years ago • 6 comments

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 avatar Aug 27 '19 14:08 maxixcom

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

lzls avatar Aug 27 '19 15:08 lzls

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?

maxixcom avatar Aug 27 '19 16:08 maxixcom

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.

lzls avatar Aug 28 '19 00:08 lzls

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?

maxixcom avatar Aug 28 '19 08:08 maxixcom

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.

lzls avatar Aug 28 '19 09:08 lzls

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!

maxixcom avatar Aug 28 '19 11:08 maxixcom