Quantcast
Channel: Entries for the tag widgets
Viewing all articles
Browse latest Browse all 15

Widget Samples series - Basic Application

$
0
0

Next up in our Widget Samples series is the Basic Application sample widget. It's a simple but complete example that demonstrates basic widget structure and behaviour including:

  • Essential contents of every widget .WGT package file
  • config.xml essentials
  • Simple HTML document structure using a fixed-position header and footer, with scrolling page text
  • CSS styling including using media queries
  • Simple JavaScript structure to encapsulate your code

If you are new to widgets, this simple example is good place to start.

The screenshot below shows the widget running on Android on the Sony Ericsson Xperia X10 mini:

Read the Code Notes

Like all samples in the series we're also publishing detailed Code Notes which walk through the source files in detail.

You can download the sample and find the Basic Application Code Noteshere.

What's in the download

The download includes:

  • The installable widget package (unsigned)
  • Fully commented source code
  • README.txt

The widget is compatible with the latest Android phones on Vodafone, as well as the new Nokia N8.


Viewing all articles
Browse latest Browse all 15

Trending Articles