Widget is one of the features introduced by Android1.5. widget, allowing you to know important information displayed by the program in a timely manner on the home screen interface. the standard Android system contains several examples of widgets, such as analog clock and music player.
In the blank area of the HomeScreen interface, you can select the "widgets" in the menu to select the desired widgets and display them on the home screen.
This document describes how to design a Widget to make it beautiful and consistent with other widgets and other elements on the home screen. the Android team also introduced some design standards for the Widget source diagram and tips for Widget plotting.
For more information about developing widgets, see the AppWidgets chapter in the developer guide and the AppWidgets blog.
Standard Widget profiling
A typical AndroidWidget consists of three main components: a limit frame, a frame, Widget graphical controls, and other elements. the well-designed widgets will keep some padding (inner padding) between the edge of the limit frame and the control of the inner edge of the frame and the Widget ). widgets are designed to match other widgets on the home screen and aligned based on other elements on the home screen. Standard shadow effects are also used. this document describes all relevant details.
Standard Widget size (vertical)
Standard Widget size (horizontal)