android - 将项目迁移到 Android Studio 时显示的旧式 Android 菜单

标签 android android-layout android-studio menu

我已经将我的项目从 Eclipse 迁移到 Android studio。
当我运行它时,我看到一个旧式菜单,如图所示。
enter image description here

我的gradle文件是:

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.tmp"
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }  

如何将菜单更改为现代风格?

最佳答案

我只是将我的评论报告为答案,如果有人遇到同样的问题,它会更加明显。

尝试使用 com.android.support:appcompat-v7:23.1.1AppCompatActivity 更新您的代码。然后使用 @style/Theme.AppCompat 作为主题。

关于android - 将项目迁移到 Android Studio 时显示的旧式 Android 菜单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34690138/

相关文章:

android - 如何在 Android Studio 的 recyclerview 预览中指定列表项计数?

android - 在这种情况下使用 Proguard 时签名有什么问题?

android - 如何设计从右到左的线性布局

java - 如何动态有效地应用 RTL

android - 如何检测手指是否已经在启动新 Activity 的按钮上

android - Android NDK 更新版本的 (OSX) 路径在哪里?

android-studio - 将新的LibGDX项目导入Android Studio,卡在Gradle Build上

android - 如何在 Android 上的 ListView xamarin.forms 中禁用选择突出显示

java - admob,按一定时间间隔循环播放广告

android - 如何在android中实现从/到excel导入/导出sqlite数据