architecture-samples
architecture-samples copied to clipboard
What is the need for a fragment
Branch - todo-mvp
I can't understand the use of a fragment here. The only use it see is that it is used to separate the view and the activity.
Should I always create a fragment to separate the view even if Im not needing a fragment.
https://github.com/googlesamples/android-architecture/tree/todo-mvp/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/taskdetail
when i add a fragment then it can't be compiled,
@florina-muntenescu any thoughts on the above question
when i add a fragment then it can't be compiled,
Branch - todo-mvp
I can't understand the use of a fragment here. The only use it see is that it is used to separate the view and the activity.
Should I always create a fragment to separate the view even if Im not needing a fragment.
https://github.com/googlesamples/android-architecture/tree/todo-mvp/todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/taskdetail
Though the idea of using an activity seems easy but creating a fragment is much better in long term , because fragments can be removed and resused multiple places. Hope it helps