Skip to content
Advertisement

Fragment with different size than the nav host fragment

I’m using the navigation architecture component in my single activity app and it works fine but what I’m facing is that in one of the fragments I need to have another fragment that takes about 60% of the initial fragment size (60% of the nav host fragment). How can I achieve that?

Advertisement

Answer

I now change the nav host fragment size programmatically whenever I need to

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement