Mina Wissa
Mina Wissa

Reputation: 10971

Using the deprecated AbsoluteLayout class in Android?

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

Upvotes: 3

Views: 2373

Answers (2)

Ganesh Kanna
Ganesh Kanna

Reputation: 2275

Refer Alternative to AbsoluteLayout in Android?

This solves your problem..

Every deprecated method and class have the alternate solution.

Upvotes: 2

Mike Sherov
Mike Sherov

Reputation: 13427

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.

Upvotes: 3

Related Questions