Android: HomeScreen
I'm curr开发者_Python百科ently developing a simple android HomeScreen
with just 1 page.
I would like to know how to enable my HomeScreen
to run and display widgets like this free widget.
Thanks so much in advance!
The best way you can use it, just get sources of Launcher application and find how AppWidgetHost added to view hierarchy and how it is maintaining AppWidgetHostView instances. Launcher sources you can get here: Laucnher.git
The home screen widgets are added by users based on the free-space they have and where they want the widget to be placed in their home-screen. As a developer you can only provide a widget, but adding that to the home-screen is purely in the control of the user.
精彩评论