-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lightThemeResId app crash #1961
Comments
@saktani Looking at the code I feel you can reference it as
Can you try this out and let me know if this works? |
Thank you for the reply but it didn't work,here is the error log from the console java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication1/com.mapbox.services.android.navigation.ui.v5.MapboxNavigationActivity}: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.mapbox.services.android.navigation.ui.v5.NavigationView |
Hey @saktani 👋 thanks for reaching out and report your issue. I've just double checked what @abhishek1508 suggested using the Line 342 in 5b9a8e8
In the snippet you shared you were hardcoding Also friendly reminder that this is not a support forum, so in the future, for implementation questions, you can send a message to [email protected] and reference this ticket. Also, please check out our help docs or post your question on Stack Overflow. The Android team is watching these questions. Thanks for understanding! |
No, I just want to use default styles. I will post future issues where suggested and sorry for the mistake. |
Awesome! Great to hear, thanks for the update!
What do you mean by that? What are you trying to build? If there is any sample or pseudo code you can provide, that would be really helpful and it'll give us better insight into your implementation and what could be causing your problem. In any case, I'm going to go ahead and closing here as solved, if you run into any issues, please feel free to cut a new ticket and we will 🕵. Thanks again for reporting and checking out the SDK! |
I'm sorry if this is the wrong place to ask this question
How do I get a light theme instead of default dark theme in the navigation guidance interface
and how to use this method : lightThemeResId
because it causes an app crash
boolean simulateRoute = false;
Integer lightThemeResId = 1;
NavigationLauncherOptions options = NavigationLauncherOptions.builder()
.directionsRoute(currentRoute)
.shouldSimulateRoute(simulateRoute)
.lightThemeResId(lightThemeResId)
.build();
Thank you
The text was updated successfully, but these errors were encountered: