android - Is having multiple xmls for one activity a bad practice? -


let's have 2 different xml files , choose 1 use through setcontentview() in activity's java file. ok? why should create different activity same code?

if user expect see first one, on pressing second, should have 2 activities(or restart same activity new content), take advantage of android navigation system; otherwise, can have more 1 in same activity.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -