简体   繁体   English

在使用支持库时,如何使用ListView构建AppWidget?

[英]How can I build an AppWidget with a ListView while using the support-library?

I want to use ListView on earlier versions of Android within an AppWidget. 我想在AppWidget的早期版本的Android上使用ListView。
RagnarRs answer in this question suggests that he achieved that via the support library, but he didn't explain how he did it exactly. RagnarR 在这个问题上的回答表明他是通过支持库实现的,但是他没有解释他是如何做到的。

Does anybody know what he's talking about? 有人知道他在说什么吗?

I want to use ListView on earlier versions of Android within an AppWidget. 我想在AppWidget的早期版本的Android上使用ListView。

This is not possible. 这是不可能的。 ListView only works in an app widget starting with API Level 11. ListView仅在API级别11开始的应用程序小部件中起作用。

RagnarRs answer in this question suggests that he achieved that via the support library, but he didn't explain how he did it exactly. RagnarR在这个问题上的回答表明他是通过支持库实现的,但是他没有解释他是如何做到的。

RagnarRs is very confused. RagnarRs非常困惑。

What do you mean by earlier versions? 早期版本是什么意思? Can't you just do this Implement ListView in android Widgets 您不能只在Android小部件中实现Implement ListView吗?

Looking into the support library I see there is the CursorAdapter which provides compatibility with thew android 3.0+ methods/constructors. 查看支持库,我看到有CursorAdapter,它提供了与Android 3.0+方法/构造函数的兼容性。

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

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