| bio | website | keepandshare.com |
|---|---|---|
| location | San Francisco, CA | |
| age | 23 | |
| visits | member for | 1 year, 6 months |
| seen | Nov 9 '12 at 17:26 | |
| stats | profile views | 6 |
Looking for the renaissance of the new digital era.
|
Nov 9 |
comment |
Proper way to implement Android XML onClick attribute in Activity If you find you're XML is too complicated to follow, maybe you want to flatten you hierarchy for performance (and maintainability), or maybe it could be defined behavior for your code that there is always an interface for a layout that defines required methods and maybe provides the IDs to the views. In which case, you must ALWAYS implement the interface of the layout you use. It might be argued that this approach breaks the DRY method, as this "interface" is simply repeating what is defined in the XML already. Consider adding a comment to the top of the XML that is a summary and lists onClick |
|
Nov 9 |
comment |
Proper way to implement Android XML onClick attribute in Activity If you are one of these "other developers" you should really know what's in the XML file before using it somewhere new. The point of the XML files is that theye are easier to scan (and implement layouts in) than Java code, as you could very well create a layout entirely in code. With a quick scan of the XML you can at least find every "android:onClick" and make sure the Activity you are using at least has those methods. |
|
Jun 7 |
answered | Is it possible to know what programming language a web-site uses? |
|
Apr 16 |
awarded | Autobiographer |
|
Feb 19 |
awarded | Editor |
|
Feb 19 |
revised |
Organizing MVC entities communication tried to answer question extended in the comments |
|
Feb 19 |
comment |
Organizing MVC entities communication Actually, the Stanford course does have a class on multiple MVCs as well. Also the rules of single MVC just extend, as in the only difference is that it is acceptable to have a model talk to another model (view's don't really talk to each other) and of course controllers can talk to each other. |
|
Feb 18 |
answered | Organizing MVC entities communication |
|
Jan 9 |
answered | Adding more responsibilities to Activities in a flexible way |
|
Dec 28 |
answered | Naming conventions: camelCase versus underscore_case ? what are your thoughts about it? |
|
Dec 7 |
awarded | Teacher |
|
Nov 18 |
answered | Learning to program without a computer |