android - Activities vs. Fragment Implementation -


i having trouble working activities , fragments. in stages of app development , looking design efficient way of integrating 2 separate screens.

the first screen "splash screen", present user logo, ability enter user information , sign in through either database or facebook. there button available allow user register app.

the second screen allow user set account defining user information , include register button , connect facebook button.

i know how approach task @ hand had designed app designating 2 activities handle each screen. recently, have switched being able host screens 2 fragments under 1 activity.

what benefits of each approach , design opt for?

fragments allowing display 2 separate uis side-by-side on large-format devices. fragments can combine code , ui within single layout, , allow non-ui "activities", give flexibility in showing various views attached activity.

i'd choose 2 activities, since you're describing progression of operations rather multiple views same operation.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -