last day (16 days later) » 

18:17
hello
hi!
so, what's the problem you're having?
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
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?
i just compiled your project only, i want the behaviour of instgram and youtube.... can i achieve that navigation graph ?
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?
18:25
with your bottom bar, do you can implement back button functionality ?
with your bottom bar, do you can implement back button functionality ?
yeah, it's supposed to work like youtube out of the box using the navigation library
everytime it goes to first bottomtab
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
do you have updated youtube app?
yeap, the one with the bottom navigation view
18:28
i will tell you as example as youtube
launch youtube app
click on subscriptions
then click on trending
then click on activity
then click back
aaaw
I see your point now
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
yeah I'm sure it isnt a view pager as well
let me see if I can help you
just one sec
the google team is so intelligent.
if you get solution please ping me on [email protected] or update me on stackoverflow
yeah, sure :)
but i got it
:)
I'll update the SO question
wow... you are super cool :)
check it in there and let me know if it worked :)
18:49
it works
great :)
glad i could help you
if you are a blogger on medium, it will be great topic. you can write on it
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.
there is lot of people searching for this solution before launch of navigation library
am from, Kerala ( India )... My native language is Malayalam.
I'm from Brazil :)
18:52
we don't have a single resource in Malayalam
anyway thanks a lot Levi
no problem :) anytime
see yeah around SO
i was so lazy to try and learn it :P
i was so lazy to try and learn it :P
going to sleep bye

  last day (16 days later) »