Zhuinden / simple-stack

[ACTIVE] Simple Stack, a backstack library / navigation framework for simpler navigation and state management (for fragments, views, or whatevers).
Apache License 2.0
1.36k stars 76 forks source link

Backstack for tabs like Instagram or Youtube #188

Closed hosseinaminii closed 5 years ago

hosseinaminii commented 5 years ago

Hi, I want to create a single Activity application that has a bottom navigation that each tab has its own backstack(like Instagarm or Youtube). Is this library proper for me? Sorry if I create an issue. I wanted to run sample apps but they didn't build.

Thanks a lot

Zhuinden commented 5 years ago

Sorry if I create an issue. I wanted to run sample apps but they didn't build.

ok, that is odd. The latest versions of Android Studio should be able to handle Kotlin Gradle DSL, and it has been working for me...

has a bottom navigation that each tab has its own backstack(like Instagarm or Youtube). Is this library proper for me?

It is technically possible but it's not out-of-the-box behavior. You'd need to use Backstack directly and manage them per each tab; and keep track of which backstack is currently selected so that back is delegated to the intended backstack.

I did have a multistack sample but I also haven't touched it in 2 years, and clearly needs an update. :thinking:

Are you looking to use it with views, or with fragments?

hosseinaminii commented 5 years ago

Thanks for replying

I tried again but they didn't build. My Android Studio version is 3.4.

Are you looking to use it with views, or with fragments?

I want to use it with fragments

Zhuinden commented 5 years ago

Took longer than it should have, but I've added a multi-stack fragment example.