1

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

Jeremy Logan
  • 47,151
  • 38
  • 123
  • 143
Mina Wissa
  • 10,923
  • 13
  • 90
  • 158

2 Answers2

3

Deprecated generally means that you are discouraged from using it because better methods exist. It can also serve as a warning that it will be removed entirely in future versions.

I would think you would want to stay away from absolute layouts because it can prevent your UI from scaling correctly on different resolutions, and it might not work at all on later versions of Android.

"will the application work correctly after I deploy it on a phone" most likely yes, but like I said you are probably going to run into issues with phones having different display resolutions.

Mark B
  • 183,023
  • 24
  • 297
  • 295
1

This is a mighty assumption. It depends on the purpose, a business application on a standard large-screen device (tablet) may have a reason to go absolute.

user506089
  • 11
  • 1
  • 1
    Well I believe it's true that you can use AbsoluteLayout only if your application is targeted at certain device, but again it may not appear correctly on different screen sizes – Mina Wissa Nov 14 '10 at 08:56
  • 1
    Only if "business application" is a synonym for "an awful user interface that looks like it was created in VB6" – Matti Virkkunen Sep 09 '12 at 23:23