Replacement of depracted interface in android
-
Hi Experts, I am a new to the android, and I am trying to work on Tab Action bar, but I find the below interface was deprecated , so what is the replacement, and what happen if I use deprecated interface?
ActionBar.TabListener
public static interface ActionBar.TabListener
android.support.v7.app.ActionBar.TabListener -
Hi Experts, I am a new to the android, and I am trying to work on Tab Action bar, but I find the below interface was deprecated , so what is the replacement, and what happen if I use deprecated interface?
ActionBar.TabListener
public static interface ActionBar.TabListener
android.support.v7.app.ActionBar.TabListener -
The first paragraph of the documentation page (ActionBar.TabListener | Android Developers[^]) gives a link to some suggested alternatives.
Thank you, But I checked the link common navigation pattern in the same page, but I didn't find any code, it is just an information. Regards,
-
Thank you, But I checked the link common navigation pattern in the same page, but I didn't find any code, it is just an information. Regards,
-
Yes, because it is just suggested patterns. You are expected to decide what you wish to implement and write the code yourself.
-
aahamdan wrote:
so if I use deprecated interface, is there any problem?
I would assume it means you can't develop for Android 5 (API 21) or newer. If your target audience is older than that, you should have no problem.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles