Skip to content

feat: improve tablet and large-screen navigation layout#16764

Open
mykh-hailo wants to merge 7 commits intonextcloud:masterfrom
mykh-hailo:feat/tablet-ux
Open

feat: improve tablet and large-screen navigation layout#16764
mykh-hailo wants to merge 7 commits intonextcloud:masterfrom
mykh-hailo:feat/tablet-ux

Conversation

@mykh-hailo
Copy link
Copy Markdown
Contributor

@mykh-hailo mykh-hailo commented Mar 27, 2026

Summary

This change adapts the main file browser and several activities for tablets and wide layouts (typically sw600dp / w600dp) by using a persistent navigation column next to content instead of relying only on the sliding DrawerLayout pattern used on phones.

Closes: #14871
Closes: #16141

DrawerActivity is updated so drawer behavior works when the root layout is not a DrawerLayout (e.g. ConstraintLayout with a fixed-width nav region). Alternative layouts under layout-sw600dp align Compose, Navigator, Contacts preferences, Synced folders, and Upload list with the same idea. files.xml is refactored to support the sidebar + content structure and to keep ViewBinding (FilesBinding / drawer_menu) consistent. TrashbinActivity and toolbar_standard are adjusted for the new structure. New sidebar.xml and resource tweaks (bools, dims) support the tablet configuration.

Technical notes

  • DrawerActivity: Centralizes “menu layout” handling; drawer toggle, ActionBarDrawerToggle, and related APIs run only when the root is a DrawerLayout; optional hamburger visibility when the layout does not use a sliding drawer.
  • Resource qualifiers: layout-sw600dp (and related values-*) provide wide-screen layouts without affecting default (phone) resources.
  • File display: files.xml + sidebar.xml structure; FileDisplayActivity updated as needed for binding / initialization.
  • Consistency: Trashbin and toolbar spacing tweaks aligned with the new app bar / content arrangement.

Signed-off-by: mykh-hailo <kristianderonta0205@gmail.com>
@mykh-hailo
Copy link
Copy Markdown
Contributor Author

@alperozturk96 Could you please check my PR for the tablet view?
Any feedback and advice is always welcome

Signed-off-by: mykh-hailo <kristianderonta0205@gmail.com>
Signed-off-by: mykh-hailo <kristianderonta0205@gmail.com>
Signed-off-by: mykh-hailo <kristianderonta0205@gmail.com>
Signed-off-by: mykh-hailo <kristianderonta0205@gmail.com>
Signed-off-by: mykh-hailo <kristianderonta0205@gmail.com>
Signed-off-by: mykh-hailo <kristianderonta0205@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong Gallery Scroll Position Enhance UX/UI for Tablet Devices

2 participants