mapbox / mapbox/mapbox-navigation-android-examples

MapboxManeuverView width is fixed in landscape mode

Open
#174 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
65
Forks
56
Avg merge
1d 4h
Merged PRs (30d)
2

Description

I'm not able to change MapboxManeuverView component width in landscape mode.
it works in portrait mode but not working on landscape mode.
Portrait layout :
`


`

Landscape code :

`



`
Navigation SDK: "com.mapbox.navigation:android:2.9.4"

Screenshots :
Landscape:
![lndscape](https://user-images.githubusercontent.com/65596246/207824652-c12db641-d7d5-4e71-b205-1011f9826e64.png)

Portraite :
![portrait](https://user-images.githubusercontent.com/65596246/207825043-a78e2367-bf42-4477-974d-e7abd0cd3406.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the portrait and landscape ConstraintLayout definitions shown in the issue, especially the MapboxManeuverView and content_box_frame_container constraints. Verify how the landscape layout determines the maneuver view width, then confirm that changing the container width also changes the maneuver view as expected in both orientations.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.