Base class refactoring

Please look at the sample app res/layout/*.xml files to insure that both horizontal and vertical layouts are correctly specified.  I think we have horizontal layout wrong.

-pmr