开发者

Android: HomeScreen

开发者 https://www.devze.com 2023-03-07 13:26 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消