Using the deprecated AbsoluteLayout class in Android?

对着背影说爱祢 提交于 2019-12-10 19:48:16

问题


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


回答1:


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.




回答2:


Refer Alternative to AbsoluteLayout in Android?

This solves your problem..

Every deprecated method and class have the alternate solution.



来源:https://stackoverflow.com/questions/2280060/using-the-deprecated-absolutelayout-class-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!