ActionBarActivity 已弃用 [英] ActionBarActivity is deprecated
本文介绍了ActionBarActivity 已弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
其实没有问题.项目编译并运行.但我不明白三振出类名是什么意思(Android Studio 说使用了不推荐使用的代码).有人可以解释一下吗?
Actually there is no problem. Project compiles and runs. But I can't understand what is mean strikeout class name (Android Studio tells that there is deprecated code is used). Can anybody explain?
推荐答案
自 22.1.0 版本起,ActionBarActivity
类已弃用.您应该使用 AppCompatActivity
.
Since the version 22.1.0, the class ActionBarActivity
is deprecated. You should use AppCompatActivity
.
这篇关于ActionBarActivity 已弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文