I believe this is the deprecated constructor.  The sample should use the new FrameLayout based constructor.