-
Notifications
You must be signed in to change notification settings - Fork 15
feat: Enable panel resizing on tablets and foldable devices #2884
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
Open
Elouan1411
wants to merge
16
commits into
main
Choose a base branch
from
resize-for-fold
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c2de51a
feat: Add logic to move both panes
Elouan1411 20fb98f
feat: Handle text display when space is limited
Elouan1411 b125e69
feat: Add handle with white space
Elouan1411 01de527
feat: Add handle design
Elouan1411 e819010
feat: Save ratio to localSettings
Elouan1411 bfded29
feat: Add restrictions to block sliding when size becomes too small
Elouan1411 64e99c0
refactor: Optimize touch listener
Elouan1411 5c2ed29
fix: Correct minor offset on first tap
Elouan1411 00ebc39
refactor: Restrict localSettings read/write operations to app launch …
Elouan1411 fffad91
feat: Update color
Elouan1411 2bb3be9
fix: Add android:duplicateParentState to separator child views to ena…
Elouan1411 d7cfa9e
refactor: Reduce cognitive complexity
Elouan1411 28e2915
fix: Handle edge cases when user is in multi-window mode
Elouan1411 afb8c22
fix: Add performClick to improve accessibility
Elouan1411 a803108
refactor: Clean code
Elouan1411 9dd1035
fix: Remove one-pixel offset when clicking on the thread list
Elouan1411 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| <?xml version="1.0" encoding="utf-8"?><!-- | ||
| ~ Infomaniak Mail - Android | ||
| ~ Copyright (C) 2026 Infomaniak Network SA | ||
| ~ | ||
| ~ This program is free software: you can redistribute it and/or modify | ||
| ~ it under the terms of the GNU General Public License as published by | ||
| ~ the Free Software Foundation, either version 3 of the License, or | ||
| ~ (at your option) any later version. | ||
| ~ | ||
| ~ This program is distributed in the hope that it will be useful, | ||
| ~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| ~ GNU General Public License for more details. | ||
| ~ | ||
| ~ You should have received a copy of the GNU General Public License | ||
| ~ along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| --> | ||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_pressed="true"> | ||
| <shape android:shape="rectangle"> | ||
| <solid android:color="?attr/colorPrimaryContainer" /> | ||
| </shape> | ||
| </item> | ||
|
|
||
| <item> | ||
| <shape android:shape="rectangle"> | ||
| <solid android:color="@color/dividerColor" /> | ||
| </shape> | ||
| </item> | ||
| </selector> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| <?xml version="1.0" encoding="utf-8"?><!-- | ||
| ~ Infomaniak Mail - Android | ||
| ~ Copyright (C) 2026 Infomaniak Network SA | ||
| ~ | ||
| ~ This program is free software: you can redistribute it and/or modify | ||
| ~ it under the terms of the GNU General Public License as published by | ||
| ~ the Free Software Foundation, either version 3 of the License, or | ||
| ~ (at your option) any later version. | ||
| ~ | ||
| ~ This program is distributed in the hope that it will be useful, | ||
| ~ but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| ~ GNU General Public License for more details. | ||
| ~ | ||
| ~ You should have received a copy of the GNU General Public License | ||
| ~ along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| --> | ||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
|
||
| <item android:state_pressed="true"> | ||
| <layer-list> | ||
| <item> | ||
| <shape android:shape="rectangle"> | ||
| <size android:width="@dimen/dragSeparatorHandleWidth" android:height="@dimen/dragSeparatorHandleHeight" /> | ||
| <solid android:color="?attr/colorPrimary" /> | ||
| <corners android:radius="100dp" /> | ||
| </shape> | ||
| </item> | ||
| <item android:gravity="top" android:left="3dp" android:right="3dp" android:top="7dp"> | ||
| <shape android:shape="oval"> | ||
| <size android:height="2dp" /> | ||
| <solid android:color="@color/backgroundColor" /> | ||
| </shape> | ||
| </item> | ||
|
|
||
| <item android:gravity="center_vertical" android:left="3dp" android:right="3dp"> | ||
| <shape android:shape="oval"> | ||
| <size android:height="2dp" /> | ||
| <solid android:color="@color/backgroundColor" /> | ||
| </shape> | ||
| </item> | ||
|
|
||
| <item android:bottom="7dp" android:gravity="bottom" android:left="3dp" android:right="3dp"> | ||
| <shape android:shape="oval"> | ||
| <size android:height="2dp" /> | ||
| <solid android:color="@color/backgroundColor" /> | ||
| </shape> | ||
| </item> | ||
| </layer-list> | ||
|
|
||
| </item> | ||
|
|
||
| <item> | ||
| <layer-list> | ||
| <item> | ||
| <shape android:shape="rectangle"> | ||
| <size android:width="@dimen/dragSeparatorHandleWidth" android:height="@dimen/dragSeparatorHandleHeight" /> | ||
| <solid android:color="?attr/colorOutlineVariant" /> | ||
| <corners android:radius="100dp" /> | ||
| </shape> | ||
| </item> | ||
|
|
||
| <item android:gravity="top" android:left="3dp" android:right="3dp" android:top="7dp"> | ||
| <shape android:shape="oval"> | ||
| <size android:height="2dp" /> | ||
| <solid android:color="@color/backgroundColor" /> | ||
| </shape> | ||
| </item> | ||
|
|
||
| <item android:gravity="center_vertical" android:left="3dp" android:right="3dp"> | ||
| <shape android:shape="oval"> | ||
| <size android:height="2dp" /> | ||
| <solid android:color="@color/backgroundColor" /> | ||
| </shape> | ||
| </item> | ||
|
|
||
| <item android:bottom="7dp" android:gravity="bottom" android:left="3dp" android:right="3dp"> | ||
| <shape android:shape="oval"> | ||
| <size android:height="2dp" /> | ||
| <solid android:color="@color/backgroundColor" /> | ||
| </shape> | ||
| </item> | ||
| </layer-list> | ||
| </item> | ||
|
|
||
| </selector> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.