我刚刚注意到,从 API 17 开始,SlidingDrawer它已被弃用。
评论说:
This class was deprecated in API level 17. This class is not supported anymore. It is recommended you base your own implementation on the source code for the Android Open Source Project if you must use it in your application.
这是否意味着我应该导入 code进入我的项目,以确保它在未来得到支持?
是否已经有一些开源项目可以扩展slidingDrawer?
最佳答案
does this mean I should import the code into my project to be sure that it will be supported in the future?
就个人而言,我会转储 SlidingDrawer
并为所有新的应用程序开发做一些其他事情。
话虽如此,SlidingDrawer
在可预见的 future 应该会出现在 Android SDK 中。正如文档所指出的,谷歌不再支持它,这意味着,在某个时候,它可能根本不再工作,必须放弃。如果您当时仍在使用它,那么您将做出决定。例如,AbsoluteLayout
在 2008 年末 IIRC 中被弃用,它仍然可以使用。
没有什么能阻止你尝试 fork SlidingDrawer
在库项目中创建一个,尽管你需要复制一些资源并进行代码更改以指向你的资源而不是内部资源框架。
关于android - 不推荐使用 SlidingDrawer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13478993/