在 android 中使用 FAB - 支持库 23.2.1

use FAB in android - support libraries 23.2.1

我可以完美地在支持库 23.1.1 中使用 FAB,当我将它放入 XML 时,它看起来没有任何问题。但是当我使用 android - 支持库 23.2.1 或更高版本,并尝试使用 FAB 并放入 XML 时,它不会显示为 FAB,只是一个空白矩形。请问我该如何使用FAB 在这些库中?我试图重建该项目,但没有任何反应。 这是我的 gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "maysara.maysara_.com.textonwallpaper"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
}

转到 Android SDK 管理器并查看是否有任何可用的更新:

  • Android SDK 构建工具
  • Android SDK 工具
  • Android 支持库

更新,重建,看看是否能解决问题。