在 Android 中使用已弃用的 AbsoluteLayout 类?
AbsoluteLayout 类已弃用,但仍然可以在代码中编写它作品。如果我使用这个类会有什么问题吗?将应用程序部署到手机上后能否正常运行?
谢谢
The AbsoluteLayout class is deprecated but still can write it in code and it works. Will there be any problems if I use this class? Will the application work correctly after I deploy it on a phone?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当一段代码被列为已弃用时,这意味着它暂时仍然可以工作,但在将来的代码更新中,对它的支持将被删除。
这意味着您最终必须想出不同的解决方案来解决问题。不妨现在就做。
如果已经存在另一个允许您执行您想做的操作的函数,我不建议使用已弃用的函数。
When a piece of code is listed as deprecated, it means that it'll still work for the time being, but that in some future update of the code, support for it will be dropped.
This means you'll eventually have to come up with a different solution to the problem. Might as well do it now.
I do not recommend using deprecated functions if another function already exists that allows you to do what you want to do.
请参阅 Android 中 AbsoluteLayout 的替代方案?
这可以解决您的问题..
每个已弃用的方法和类有替代解决方案。
Refer Alternative to AbsoluteLayout in Android?
This solves your problem..
Every deprecated method and class have the alternate solution.