[android] Make editor toolbar title visible if search is hidden #1672

Merged
arnaudvergnet merged 2 commits from editor-header-title into master 2021-12-08 14:16:11 +00:00
arnaudvergnet commented 2021-12-07 18:07:51 +00:00 (Migrated from github.com)

Resizes the toolbar layout to contain only the save button when the search controls are hidden, to leave room for the toolbar title.

Before

Main editor Opening hours editor Cuisine editor
Screenshot_20211208-092706 Screenshot_20211208-092719 Screenshot_20211208-092732

After

Main editor Opening hours editor Cuisine editor
Screenshot_20211208-093404 Screenshot_20211208-093424 Screenshot_20211208-093435

After (landscape)

Main editor Opening hours editor Cuisine editor
Screenshot_20211208-093448 Screenshot_20211208-093452 Screenshot_20211208-093506

After (tablet)

Main editor Opening hours editor Cuisine editor
Screenshot_1638956081 Screenshot_1638956085 Screenshot_1638956092
Resizes the toolbar layout to contain only the save button when the search controls are hidden, to leave room for the toolbar title. ### Before | Main editor | Opening hours editor | Cuisine editor | | - | - | - | | ![Screenshot_20211208-092706](https://user-images.githubusercontent.com/80701113/145185421-17fed80f-328e-4381-9c3e-aae33b53563d.png) | ![Screenshot_20211208-092719](https://user-images.githubusercontent.com/80701113/145185427-34da0267-610f-4f4c-8110-2a3ec3dea477.png) | ![Screenshot_20211208-092732](https://user-images.githubusercontent.com/80701113/145185431-c14fea26-59b6-48f2-abbd-261bedabfab5.png) | ### After | Main editor | Opening hours editor | Cuisine editor | | - | - | - | | ![Screenshot_20211208-093404](https://user-images.githubusercontent.com/80701113/145185838-328cbc9e-f0f1-4a5e-acdd-a122692d3842.png)| ![Screenshot_20211208-093424](https://user-images.githubusercontent.com/80701113/145185577-18278438-5433-4dd6-bbba-9ee37d204797.png) | ![Screenshot_20211208-093435](https://user-images.githubusercontent.com/80701113/145185585-8700c85c-b3b7-4a16-b0bf-92c5ba1658d9.png) | ### After (landscape) | Main editor | Opening hours editor | Cuisine editor | | - | - | - | | ![Screenshot_20211208-093448](https://user-images.githubusercontent.com/80701113/145185599-f9de5078-c20b-4131-a1d3-cf0a5fd9cc04.png) | ![Screenshot_20211208-093452](https://user-images.githubusercontent.com/80701113/145185607-7396784b-af7f-4809-a3b7-c3817dd04a39.png) | ![Screenshot_20211208-093506](https://user-images.githubusercontent.com/80701113/145185612-a71d9753-986a-4876-82e6-bb9120b77266.png) | ### After (tablet) | Main editor | Opening hours editor | Cuisine editor | | - | - | - | | ![Screenshot_1638956081](https://user-images.githubusercontent.com/80701113/145185708-42018402-5063-47bb-a0f3-2c27bd7317c0.png) | ![Screenshot_1638956085](https://user-images.githubusercontent.com/80701113/145185712-24223ad1-b0da-43f0-ac79-26e63cb39113.png) | ![Screenshot_1638956092](https://user-images.githubusercontent.com/80701113/145185725-4929ed8b-6a8a-4aee-a6e5-9d1675e79483.png) |
biodranik (Migrated from github.com) reviewed 2021-12-07 22:27:00 +00:00
biodranik (Migrated from github.com) left a comment

Thank you for your contribution!

Can you please attach screenshots of how it looked before and after your change?
Also, how it now looks in portrait and landscape modes?

Does it also work well for a tablet layout?

Thank you for your contribution! Can you please attach screenshots of how it looked before and after your change? Also, how it now looks in portrait and landscape modes? Does it also work well for a tablet layout?
biodranik (Migrated from github.com) commented 2021-12-07 22:23:22 +00:00

nit: I would use final View toolbar = getToolbarController().getToolbar(); to avoid copy-paste.

nit: I would use `final View toolbar = getToolbarController().getToolbar();` to avoid copy-paste.
biodranik (Migrated from github.com) commented 2021-12-07 22:24:28 +00:00

nit: Dot at the end.

nit: Dot at the end.
biodranik (Migrated from github.com) commented 2021-12-07 22:25:00 +00:00

Our code style puts { on the next line.
(also in the if below).

Our code style puts { on the next line. (also in the `if` below).
arnaudvergnet commented 2021-12-08 09:45:10 +00:00 (Migrated from github.com)

Thank you for your contribution!

Can you please attach screenshots of how it looked before and after your change? Also, how it now looks in portrait and landscape modes?

Does it also work well for a tablet layout?

Updated the PR description

> Thank you for your contribution! > > Can you please attach screenshots of how it looked before and after your change? Also, how it now looks in portrait and landscape modes? > > Does it also work well for a tablet layout? Updated the PR description
biodranik (Migrated from github.com) approved these changes 2021-12-08 14:16:00 +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 reviewers
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
1 participant
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#1672
No description provided.