Android支持MediaRouter杀死了支持设计

我正在使用Cast集成开发一个应用程序.我可以设置一个演员按钮,我甚至可以将我的应用程序投射到ChromeCast.但是,当我将MediaRouter作为依赖项包含时,我会为浮动操作按钮获得一种奇怪的样式(或缺少它).

这是正确设计的按钮:

《Android支持MediaRouter杀死了支持设计》

这是我添加MediaRouter依赖项时会发生的事情:

《Android支持MediaRouter杀死了支持设计》

// build.gradle
dependencies {
    // ....

    // Removing the mediarouter fixes the "design" of the toaster, but then crashes app
    implementation 'com.android.support:mediarouter-v7:26.1.0'
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.google.android.gms:play-services-cast-framework:10.0.1'
    implementation 'com.android.support:design:26.1.0'
    // ...

有关可能导致此问题的原因或我应如何解决的问题?

最佳答案 在任何情况下,您还可以添加
custom style,然后尝试复制
Material Design style.

点赞