[Android] Route info panel re-layout #5889

Merged
root merged 5 commits from issue-3320-route-panel-layout into master 2023-09-04 07:52:36 +00:00
Member

Closes #3320.

There are 6 dirrefent layouts:

  • Pedestrian/Bycicle route Portrait
  • Pedestrian/Bycicle route Landscape
  • Vehicle route Portrait
  • Vehicle route Landscape
  • Pedestrian route Tablet
  • Vehicle route Tablet

Pedestrian route Portrait

cmp-ped-portrait

Pedestrian route Landscape

cmp-ped-land

Vehicle route Portrait (No changes)

cmp-vh-portrait

Vehicle route Landscape (No changes)

cmp-vh-land

Pedestrian route Tablet

cmp-tablet-pedestrian

Vehicle route Tablet

cmp-tablet-vh

Implementation details

Portrait layout was implemented using simple vertical/horizontal layouts:

new-both-portrait

To switch Pedestrian-Vehicle mode we hide some elements:

new-schema-portrait

Landscape layout was implemented using simple vertical/horizontal layouts:
new-both-land

To switch Pedestrian-Vehicle mode we hide some elements:
new-schema-land

XML Layouts changes

Instead of multiple files routing_details.xml, start_button.xml, and altitude_chart_panel.xml all layout is located in altitude_chart_panel.xml.
But we have RoutingPlanFragment class which uses fragment_routing.xml and start_button.xml. This RoutingPlanFragment is never used because we have flag tabletLayout=false.

Should we delete RoutingPlanFragment and all dependants?

Closes #3320. There are 6 dirrefent layouts: * Pedestrian/Bycicle route Portrait * Pedestrian/Bycicle route Landscape * Vehicle route Portrait * Vehicle route Landscape * Pedestrian route Tablet * Vehicle route Tablet ## Pedestrian route Portrait <img alt="cmp-ped-portrait" src="https://github.com/organicmaps/organicmaps/assets/720808/21c885dc-ebea-48c4-b13b-a81a46600c32" width="300px"/> ## Pedestrian route Landscape <img alt="cmp-ped-land" src="https://github.com/organicmaps/organicmaps/assets/720808/15c56d09-61c7-4778-bb01-c2b279b6e99c" width="300px" /> ## Vehicle route Portrait (No changes) <img alt="cmp-vh-portrait" src="https://github.com/organicmaps/organicmaps/assets/720808/338a7010-2a34-4c28-af3c-8f90b67abce1" width="300px" /> ## Vehicle route Landscape (No changes) <img alt="cmp-vh-land" src="https://github.com/organicmaps/organicmaps/assets/720808/80bebfd7-ca50-4b74-bf82-4efa07a5bc19" width="300px" /> ## Pedestrian route Tablet <img alt="cmp-tablet-pedestrian" src="https://github.com/organicmaps/organicmaps/assets/720808/ca2e0cac-9e08-4a26-bc17-f7a0dea11f49" width="500px" /> ## Vehicle route Tablet <img alt="cmp-tablet-vh" src="https://github.com/organicmaps/organicmaps/assets/720808/b4fab3e8-0bc3-4d2a-a3c9-e20a06a5ca7d" width="500px" /> # Implementation details Portrait layout was implemented using simple vertical/horizontal layouts: <img alt="new-both-portrait" src="https://github.com/organicmaps/organicmaps/assets/720808/d389dff8-8c79-4633-9c86-2cd45e8c34de" width="500px" /> To switch Pedestrian-Vehicle mode we hide some elements: <img alt="new-schema-portrait" src="https://github.com/organicmaps/organicmaps/assets/720808/3a6db2f1-4dae-4f36-8281-da0960ad7ffc" width="500px" /> Landscape layout was implemented using simple vertical/horizontal layouts: <img alt="new-both-land" src="https://github.com/organicmaps/organicmaps/assets/720808/60f8885c-1587-43f6-ba77-69152e3343d9" width="500px" /> To switch Pedestrian-Vehicle mode we hide some elements: <img alt="new-schema-land" src="https://github.com/organicmaps/organicmaps/assets/720808/7ee3f04e-e5a3-4ab4-b9b8-16e4f950914d" width="500px" /> ## XML Layouts changes Instead of multiple files `routing_details.xml`, `start_button.xml`, and `altitude_chart_panel.xml` all layout is located in `altitude_chart_panel.xml`. But we have `RoutingPlanFragment` class which uses `fragment_routing.xml` and `start_button.xml`. This `RoutingPlanFragment` is never used because we have flag `tabletLayout=false`. Should we delete `RoutingPlanFragment` and all dependants?
Jean-BaptisteC (Migrated from github.com) requested changes 2023-09-01 10:55:15 +00:00
Jean-BaptisteC (Migrated from github.com) left a comment

Pixel 6 - Android 13

❌ Pixel 6 - Android 13 <img src="https://github.com/organicmaps/organicmaps/assets/87148630/8c9fd60c-6d0b-47c4-8874-bb5ebf92381d" height=400 />
Jean-BaptisteC (Migrated from github.com) approved these changes 2023-09-01 13:11:54 +00:00
Jean-BaptisteC (Migrated from github.com) left a comment

Pixel 6 - Android 13
I have planned to test on tablet later

✅ Pixel 6 - Android 13 I have planned to test on tablet later
biodranik (Migrated from github.com) reviewed 2023-09-02 23:18:09 +00:00
biodranik (Migrated from github.com) left a comment

Should we delete RoutingPlanFragment and all dependants?

Please remove all unused code. Any refactorings that simplify the implementation are welcome!

One important question: Would it be easy to later enable elevation graphs for other route types like cars and maybe PT?

> Should we delete RoutingPlanFragment and all dependants? Please remove all unused code. Any refactorings that simplify the implementation are welcome! One important question: Would it be easy to later enable elevation graphs for other route types like cars and maybe PT?
vng (Migrated from github.com) approved these changes 2023-09-02 23:31:08 +00:00
biodranik (Migrated from github.com) approved these changes 2023-09-04 07:52:13 +00:00
biodranik (Migrated from github.com) left a comment

Thank you!

Thank you!
This repo is archived. You cannot comment on pull requests.
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#5889
No description provided.