简体   繁体   English

Android:如何向小部件添加动态表格布局?

[英]Android: How to add a dynamic table layout to the widget?

i have a initial layout loaded properly. 我有正确加载的初始布局。

now that i want to add contents to the widget. 现在,我想向小部件添加内容。 they are retrieved from a webservice. 它们是从Web服务检索的。

hence i am using table layout which i created in updateService method inside appwidget provider. 因此,我正在使用我在appwidget提供程序内部的updateService方法中创建的表布局。

how to add this table layout into the widget? 如何将此表布局添加到小部件中? remoteview did not help :( remoteview没有帮助:(

Duplicate issue cannot use a Tablelayout within a widget? 重复的问题不能在小部件内使用Tablelayout吗?

Table Layout inside a 'Widget' isn't possible. 无法在“小部件”中进行表格布局。 'RelativeLayout' is the way to go. “ RelativeLayout”是必经之路。

App Widget can only use a limited set of Widgets. App Widget只能使用一组有限的Widget。 More here... http://android.bigresource.com/Track/android-zjmeISGMz/ 此处更多... http://android.bigresource.com/Track/android-zjmeISGMz/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM