mapbox / mapbox/mapbox-navigation-android

Bottom of Nav UI SDK RecenterButton gets cut off

Open
#3,421 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug UI
Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

### Steps to trigger behavior

1. Open the `examples` test app's `NavigationViewActivity` example.
2. Once the example activity opens, immediately move the map so that the `RecenterButton` is displayed. Wait for the subbanner (the `extraInstructionContentLayout` in`/libnavigation-ui/src/main/res/layout/instruction_view_layout.xml`) to appear.

### Expected behavior

The `RecenterButton` to remain whole as it and other various other UI components move around the screen.

### Actual behavior

The bottom of the `RecenterButton` gets cut off as other Nav UI SDK UI components move around.

Screen Shot 2020-08-07 at 11 59 39 AM

![ezgif com-resize](https://user-images.githubusercontent.com/4394910/89679086-3d6d5400-d8a5-11ea-97de-1adb7d5eec7e.gif)

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

Reproduce the issue in the examples test app's NavigationViewActivity, then inspect extraInstructionContentLayout in /libnavigation-ui/src/main/res/layout/instruction_view_layout.xml while the subbanner appears. Confirm the RecenterButton remains fully visible as the navigation UI components move; the issue is resolved when its bottom is no longer cut off.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.