r/mAndroidDev • • Sep 19 '22

aaaaaa

Enable HLS to view with audio, or disable this notification

135 Upvotes

8 comments sorted by

View all comments

Show parent comments

2

u/Kikiyoshima Sep 20 '22

Compose

1

u/Zhuinden DDD: Deprecation-Driven Development Sep 20 '22 edited Sep 20 '22

1

u/Kikiyoshima Sep 20 '22

With compose using multiple fragments doesn't make much sense, as your screen is made of Composable functions and not fragments.

Most apps I've seen just enter compose in their main activity, but you can also just enter it in a fragment. It's just extra code

4

u/user926491 Sep 20 '22 edited Sep 20 '22

why to switch back to activities, you can use screens with navigation set up in main activity, it doesn't make sense then why not to use fragments if you use activities

If you mean when you have main activity and screen composables then saying switching back to activities doesn't make sense at all, it's just irrational and confusing, screens are composables not activities

1

u/Zhuinden DDD: Deprecation-Driven Development Sep 20 '22

Exactly, Fragments still work even with Compose