不推荐使用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
.