I am creating a appwidget that consists of a single custom view called Foo.
xml/widget.xml:
see the documentation.
AnalogClock, Button, Chronometer, ImageButton, ImageView, ProgressBar and TextView are the supported views. For layouts you have to use FrameLayout, LinearLayout or RelativeLayout.