SlidingDrawer德precated [英] SlidingDrawer deprecated

查看:138
本文介绍了SlidingDrawer德precated的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只注意到,自17 API的 SlidingDrawer 的它已经pcated德$ P $。

在其上的评论说:

  

这个类是德precated在API级别17。   不支持了这个类。建议您基于自己的实现上的源$ C ​​$ C为Android开源项目,如果你必须使用你的应用程序。

这是不是意味着我应该导入<一href="http://grep$c$c.com/file/repository.grep$c$c.com/java/ext/com.google.android/android/4.1.1_r1/android/widget/SlidingDrawer.java#SlidingDrawer">$c$c到我的项目,以确保它会在未来得到支持?

在那里已经有一些开源项目,它扩展了slidingDrawer了吗?

解决方案
  

这是不是意味着我应该导入code到我的项目,以确保它会在未来得到支持?

就个人而言,我会倾 SlidingDrawer 并做了所有新的应用程序开发别的东西。

话虽这么说, SlidingDrawer 应该是在Android SDK在可预见的未来。由于文档音符,谷歌没有支持它了,这意味着,潜在的,有时,它可能不再在所有的工作,都必须丢弃。如果你还在使用它在那个时候,那么你将不得不做出决定。例如, AbsoluteLayout 是pcated在2008年底IIRC德$ P $,它仍然可以使用。

没有什么阻止你尝试到餐桌 SlidingDrawer 使一个库中的项目,虽然你将需要复制一些资源,使code更改指向你的资源,而不是那些内部的框架。

I just noticed that since API 17 the SlidingDrawer it's been deprecated.

the comment on it says:

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.

does this mean I should import the code into my project to be sure that it will be supported in the future?

are there already some open-source project that extends the slidingDrawer out there?

解决方案

does this mean I should import the code into my project to be sure that it will be supported in the future?

Personally, I would dump SlidingDrawer and do something else for all new app development.

That being said, SlidingDrawer should be in the Android SDK for the foreseeable future. As the docs note, Google is not supporting it any more, which means, potentially, sometime, it may no longer work at all and will have to be dropped. If you are still using it at that time, then you will have a decision to make. For example, AbsoluteLayout was deprecated in late 2008 IIRC, and it is still available for use.

There is nothing stopping you from trying to fork SlidingDrawer to make one in a library project, though you will need to copy some resources and make code changes to point to your resources rather than ones internal to the framework.

这篇关于SlidingDrawer德precated的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆