Hey everyone,
I recently study about advantages of using single activity in an app. so while building my own app I started to wonder if it is recommended to have login/signup fragment and home screen in a single activity.
if anyone has any opinions on this, please share.
Thank you in advance. 🙂
😶 3
c
Colton Idle
05/14/2021, 9:12 PM
Not kotlin related so you're not really going to get too many answers. Better off looking for some other android communities. I would check out this video to answer your questions though:
Using Navigation architecture you can have all the fragments in your app in an single activity.
Nimish Nandwana
05/15/2021, 10:43 AM
@Ujjwal Mittal
u
Ujjwal Mittal
05/15/2021, 11:13 AM
Yeah I am using navigation architecture component in my app, just want to know whether having login fragment and home fragment in single activity is a better practice or not @Nimish Nandwana
n
Nimish Nandwana
05/15/2021, 11:13 AM
yeah, totally cool. Go ahead
👍 1
u
Ujjwal Mittal
05/15/2021, 11:14 AM
@Colton Idle yeah I realized that, but thank you for sharing the video, means a lot.🙂
Ujjwal Mittal
05/15/2021, 11:14 AM
@Nimish Nandwana Thank you so much for your reply. 😄