mapbox / mapbox/mapbox-navigation-android
Color changes in a layout have no affect for MapboxTripProgressView
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 651
- Forks
- 321
- PR merge metrics
- No merged PRs in 30d
Description
**Android API:All
**Mapbox Navigation SDK version:2.11.0
### Steps to trigger behavior
1. Create a custom UI such as the one at: https://github.com/mapbox/mapbox-navigation-android-examples/blob/main/app/src/main/java/com/mapbox/navigation/examples/turnbyturn/TurnByTurnExperienceActivity.kt
2. Customize the MapboxTripProgressView by adding
```
app:distanceRemainingIconTint="#FFFFFF"
app:estimatedArrivalTimeIconTint="#FFFFFF"
app:tripProgressTextColor="#FFFFFF"
app:tripProgressViewBackgroundColor="@android:color/transparent"
```
3. Start a navigation session to bring up the trip progress view.
### Expected behavior
Your selected colors are present in the trip progress view.
### Actual behavior
Only the default colors get used.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the custom UI setup in app/src/main/java/com/mapbox/navigation/examples/turnbyturn/TurnByTurnExperienceActivity.kt and trace how MapboxTripProgressView is configured during navigation. Check how the listed color attributes are applied, then verify that the selected icon, text, and background colors appear when the trip progress view is shown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100