创建 Android 小部件的最佳方式
我需要开发一些 android 小部件。我需要使其时尚并且应该支持多屏幕分辨率。
我开发了一些小部件,但在屏幕分辨率方面遇到了问题。
创建这些的最佳方法是什么?
感谢您的阅读。
I need to develop some android widgets.I need to make it stylish and should support multi-screen resolutions.
I developed some widgets but had problems with screen-resolution.
What are best methods to create these?
Thanks for reading.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于屏幕分辨率,正常的android设计指南是必要且充分的,因为widget也遵循xml布局技术,差异仅在于
remoteView
方法,与设计无关。关于实现,我会说扩展
AppWidgetProvider
比更新小部件内容的broadcastReceiver
方法更好。for screen-resolution , normal android design guidelines are necessary and sufficient because widget also follows xml layout techniue ,difference comes with
remoteView
methods only ,which has nothing to do with design .about implementation i will say extending
AppWidgetProvider
is better then abroadcastReceiver
approach to update widget contents .