How to use MapBox NavigationView inside a fragment
up vote
2
down vote
favorite
Based on the changes that has been introduced in 0.7.0, I need to make use of turn-by-turn navigation drop-in UI, however inside my fragment, so I need help trying to figure out how to do so as the documentation to implement NavigationView is based on Activity, such as the life cycle callbacks which are different in the case of fragments
The reason why I need to make use of the drop-in UI inside my fragment is because my fragment is in a tab control, and is already handling some custom location based features, and needs to show a turn-by-turn navigation when needed
add a comment |
up vote
2
down vote
favorite
Based on the changes that has been introduced in 0.7.0, I need to make use of turn-by-turn navigation drop-in UI, however inside my fragment, so I need help trying to figure out how to do so as the documentation to implement NavigationView is based on Activity, such as the life cycle callbacks which are different in the case of fragments
The reason why I need to make use of the drop-in UI inside my fragment is because my fragment is in a tab control, and is already handling some custom location based features, and needs to show a turn-by-turn navigation when needed
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Based on the changes that has been introduced in 0.7.0, I need to make use of turn-by-turn navigation drop-in UI, however inside my fragment, so I need help trying to figure out how to do so as the documentation to implement NavigationView is based on Activity, such as the life cycle callbacks which are different in the case of fragments
The reason why I need to make use of the drop-in UI inside my fragment is because my fragment is in a tab control, and is already handling some custom location based features, and needs to show a turn-by-turn navigation when needed
Based on the changes that has been introduced in 0.7.0, I need to make use of turn-by-turn navigation drop-in UI, however inside my fragment, so I need help trying to figure out how to do so as the documentation to implement NavigationView is based on Activity, such as the life cycle callbacks which are different in the case of fragments
The reason why I need to make use of the drop-in UI inside my fragment is because my fragment is in a tab control, and is already handling some custom location based features, and needs to show a turn-by-turn navigation when needed
edited Nov 16 '17 at 22:03
asked Nov 16 '17 at 21:55
Azhar Ali
266111
266111
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can either use the NavigationLauncher, which will create its own full screen activity on the fly, or you can create your own NavigationView fragment. I preferred the latter option, as then, I could embed the fragment into my tabbed container.
The full instructions are located here.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can either use the NavigationLauncher, which will create its own full screen activity on the fly, or you can create your own NavigationView fragment. I preferred the latter option, as then, I could embed the fragment into my tabbed container.
The full instructions are located here.
add a comment |
up vote
0
down vote
You can either use the NavigationLauncher, which will create its own full screen activity on the fly, or you can create your own NavigationView fragment. I preferred the latter option, as then, I could embed the fragment into my tabbed container.
The full instructions are located here.
add a comment |
up vote
0
down vote
up vote
0
down vote
You can either use the NavigationLauncher, which will create its own full screen activity on the fly, or you can create your own NavigationView fragment. I preferred the latter option, as then, I could embed the fragment into my tabbed container.
The full instructions are located here.
You can either use the NavigationLauncher, which will create its own full screen activity on the fly, or you can create your own NavigationView fragment. I preferred the latter option, as then, I could embed the fragment into my tabbed container.
The full instructions are located here.
answered May 29 at 18:34
Mr L
518
518
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47339773%2fhow-to-use-mapbox-navigationview-inside-a-fragment%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown