The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

kofiaddaquay (22) [Avatar] Offline
#1
Are questions only allowed during MEAP? I have questions about some of the ideas the book presents, as i am unable to get help online. Was hoping the author could answer.

Question is i am struggling a bit with creating my view classes using the architecture explained in the book. In the book, i see a generic main class, which will contain elements common between the phone's main and the tablet main views. Then i see a more specific phone main class then a tablet main class. Question is, should i be structuring all my views like this? Say i have a feature page that looks different on phones and tablets. Should i begin by always having a generic feature class? then write platform specific code for how it will look on phones and tablets?

i guess the exception here is for views that will look the same on mobile and tablets. then in that case i could use one view... But if they are different i should use the approach of first creating a generic class following by device specific code. Pretty much i am writing 3 classes for each view. Thanks for your help in advance.