My one activity seems to have grown quite a bit and I feel like that things should be more object oriented somehow. I think it happens because I am just learning and therefore keep adding different views, to see things working. Before I know it, it has gotten big.

I have subclassed things like LinearLayout, ViewFlipper, Button, TextView, etc etc and thought that providing constructors for these classes that take arguments like textsize, font, layout parameters, background color etc etc might help the situation and actually might lend itself more towards OOP common design paradigms. Doing it this way of course means that my constructor will have tons of arguments.

I was wondering if I could get some feedback on this approach above: should I use my subclasses to my advantage for a more OOP design, or do some activities just naturally have lots of code? Thanks!


Question: How do I turn off my Raspberry Pi?
Answer: This is not very hard.  Go into the command prompt, and type sudo halt.  Enter your password if needed. Once there is nothing on the screen, pull the plug.

Info from the Raspberry Pi website.