I am using an AbsoluteLayout for a Activity and have it defined in a xml file.
I added this line of code because I am trying to add a list of buttons dynamically and I get the following warning.
private AbsoluteLayout layout = (AbsoluteLayout) findViewById(R.id.viewsaved);
The type AbsoluteLayout is deprecated
The code still appears to work properly, but I was just curious to see if anyone knows why this warning appears?
Thanks for any help!
From Wikipedia – Deprecation
In short, the function will work for now but will likely be removed in future versions. You’ll want to find something to replace it with.
AbsoluteLayout suggests you use
FrameLayout,RelativeLayoutor a custom layout instead.