java - Efficient Android Design and Use of Classes -


i don't have code need with, instead have question android design in general. in game making, have activity class, use getting resources (which passed view class) , creating view class, handles of game logic, controls, display, etc. doesn't seem efficient use activity class load of data passed class or rely on view class of work, best way use view , activity classes?

its not wrong way. thing makes me leery said having lots of logic in view. android set mvc architecture, , there's lot of advantages following that. activity more or less controller, , various views view. when hear lot of logic in view classes makes me worries behavior tightly coupled graphical representation, make expanding or changing layout difficult.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -