android / architecture-samples

A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.
Apache License 2.0
44.47k stars 11.64k forks source link

[todo-mvp] Why use fragment? #859

Open xieliuhao opened 2 years ago

xieliuhao commented 2 years ago

I found that an activity in the project will create a fragment correspondingly. What are the benefits of this? I don't think fragments are necessary.

image image
anismarzouk808 commented 2 years ago

https://medium.com/@huseyinozkoc/android-fragment-with-all-aspect-ebb488e9cf01 https://medium.com/androiddevlopers/introduction-to-fragments-in-android-1f8f484e6a6b

chanjungkim commented 2 years ago

Expandable?

Zhuinden commented 2 years ago

The fragments are necessary, the activities aren't.

bravekingzhang commented 2 years ago

邮件以收到,谢谢!