Replies: 1 comment 1 reply
|
In mode 3, wouldn't it be more intuitive for the center part to be the swipe actions and the edges to be swipe tabs since when you're swiping from the edge it will naturally feel like you are pushing away the current tab to the next one? Really looking forward to this being implemented in all of the apps! This is the one missing feature distinguishing it from the others and keeping some users away from it |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Related Issues:
1. Context
Users across Messages, Phone, and Contacts have frequently requested horizontal swipe gestures on list items (e.g., swipe to archive/delete messages, call/SMS in call logs and contacts).
Previously these requests put on hold with
needs triagefor two very valid architectural reasons:Cross App UI/UX Consistency: The interaction pattern must be consistent and unified across the entire suite via
org.fossify:commonsViewPager Conflict: In
PhoneandContacts, the main screen hosts tabs insideMyViewPager. When a user drags horizontally on a list item,ViewPager.onInterceptTouchEvent()intercepts the horizontal touch and switches tabs instead of swiping the list item.2. Proposed Modes to Resolve
Mode 0: Off (No Gesture)
Mode 1: Swipe for switching between tabs (Default)
Mode 2: Swipe for executing Action
view_pager.isPagingEnabled = false.TabLayout.Mode 3: Screen Area Distribution for Swipe
The screen width is partitioned into distinct horizontal interaction zones:
When gesture starts in the center of the screen: The touch is delegated to
MyViewPagerto allow horizontal tab switching.When gesture starts in the edges: Touch interception by
ViewPagerand executes the swipe action (configurable) on item.OR BOTH 2 & 3 given as option
3.
commons& AppsImplementation strictly separates the gesture mechanism from the app policies:
A. In
org.fossify:commonsSwipeActionHelper:BaseConfigPreferences:swipeGestureMode(options: Off, Mode 1: Swipe for switching between tabs, Mode 2: Swipe for executing Action, Mode 3: Screen Area Distribution for Swipe),swipeLeftAction, andswipeRightActionconfigurationB. In Individual Apps (The Policies)
Messages:SwipeActionHelpertoConversationsAdapterSnackbarcontaining anUNDOaction.Phone:SwipeActionHelpertoRecentCallsAdapterand Contacts tab list.Contacts:SwipeActionHelpertoContactsAdapterfor quick Call/SMS/Other actions.Other Apps (
Gallery,Notes,File Manager):swipeGestureModepreference; defaults to Mode 1 (tab switching) or disabled depending on app layout.Hey, @naveensingh , @Aga-C
Which of the modes best fits for Fossify?
Any suggestions for this proposal?
Once there is consensus on the preferred mode, I would love to` to submit the PRs following all contribution under guidelines.
All reactions