next day →
last day (16 days later) »
Bincy Baby
18:17
hello
Levi Albuquerque
hi!
so, what's the problem you're having?
Bincy Baby
i have compiled your sampl, but i need the sam functionality that instagram and youtube has
In instagram and youtube, when we click on back app leads to the tab that we last opened
Levi Albuquerque
that's because you're inside the backstack
if you clear out the back stack you'll see the standard behaviour is to go back to the home tab and if the user hits back again it will leave the app
how did you organize your navigation graph?
Bincy Baby
i just compiled your project only, i want the behaviour of instgram and youtube.... can i achieve that navigation graph ?
Levi Albuquerque
humm, I see
to have the same beahviour as them you'll need to create more fragments and make your project a bit larger in order to have a real navigation graph
my example Has only root fragments and an app like youtube for exame have nested fragments so it has a deeper grapgh
what happens when you hit back in the example I posted?
Bincy Baby
18:25
with your bottom bar, do you can implement back button functionality ?
with your bottom bar, do you can implement back button functionality ?
Levi Albuquerque
yeah, it's supposed to work like youtube out of the box using the navigation library
Bincy Baby
everytime it goes to first bottomtab
Levi Albuquerque
which is the correct behaviour if you use the youtube app with the backstack cleaned
to clean the backstack open the youtube app and hit back until it exits the app
then open the app again and click in another tab
then click back, you'll see that it jumps back to the home tab
the same happens in instagram
the difference is that my sample app doesn't navigate deeper because it only have 5 fragments
while in youtube and instagram you can go deeper
Bincy Baby
do you have updated youtube app?
Levi Albuquerque
yeap, the one with the bottom navigation view
Bincy Baby
18:28
i will tell you as example as youtube
launch youtube app
Levi Albuquerque
yeah
Bincy Baby
click on subscriptions
Levi Albuquerque
ok
Bincy Baby
then click on trending
then click on activity
then click back
Levi Albuquerque
aaaw
I see your point now
Bincy Baby
18:30
app will goes to trending tab (that i want)
i have implemented this functionality using viewpager, but am damn sure that youtube is not using viewpager. it uses navigation library
Levi Albuquerque
yeah I'm sure it isnt a view pager as well
let me see if I can help you
just one sec
Bincy Baby
the google team is so intelligent.
if you get solution please ping me on
[email protected]
or update me on stackoverflow
Levi Albuquerque
yeah, sure :)
but i got it
:)
I'll update the SO question
Bincy Baby
wow... you are super cool :)
Levi Albuquerque
check it in there and let me know if it worked :)
Bincy Baby
18:49
it works
Levi Albuquerque
great :)
glad i could help you
Bincy Baby
if you are a blogger on medium, it will be great topic. you can write on it
Levi Albuquerque
I'm actually writing a blog right now about the Navigation component :) But it's in portuguese though, we don't have many resources in portuguese, specially for the new jetpack components.
Bincy Baby
there is lot of people searching for this solution before launch of navigation library
am from, Kerala ( India )... My native language is Malayalam.
Levi Albuquerque
I'm from Brazil :)
Bincy Baby
18:52
we don't have a single resource in Malayalam
anyway thanks a lot Levi
Levi Albuquerque
no problem :) anytime
see yeah around SO
Bincy Baby
i was so lazy to try and learn it :P
i was so lazy to try and learn it :P
going to sleep bye
next day →
last day (16 days later) »
all rooms
Transcript for
Jun '18
1
Jun
2
NavigationAndroid
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2024 Stack Exchange Inc;
legal
mobile