最近设计widget的时候遇到一些布局设置的问题,总是提示“加载小部件时出现错误”,查看官方文档后才发现,RemoteLayout的布局是有限制的,
这点在开发过程中需要注意,主要有以下几点:
A RemoteViews object (and, consequently, an App Widget) can support the following layout classes:
支持的layout类型
And the following widget classes:
Descendants of these classes are not supported.
其他的部件是不支持的
比如我想加入ScrollView,实现文字滚屏显示就暂时没有实现,不知道有没有其他办法?