开发者

List in app widget

开发者 https://www.devze.com 2023-01-18 20:39 出处:网络
Is it po开发者_如何学运维ssible to have a list with dynamic amount of items in app widget?At the time of this question, ListView\'s in AppWidgets were not possible. Now, you can by using RemoteViews.

Is it po开发者_如何学运维ssible to have a list with dynamic amount of items in app widget?


At the time of this question, ListView's in AppWidgets were not possible. Now, you can by using RemoteViews. This example shows you how: http://developer.android.com/resources/samples/StackWidget/index.html


If by "list with dynamic amount of items", you mean a ListView, no.

If by "list with dynamic amount of items", you mean something inside of a ScrollView, no.

That is because neither ListView nor ScrollView are supported in app widgets. Also, app widgets are fixed size.

The only thing I have seen similar to what you describe probably uses a set of nested LinearLayout containers to set up a table, only some of whose cells are filled in (the rest are blank).

0

精彩评论

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