Support Android MediaRouter kills support design

I am developing a Cast integration application. I can customize the throw button, and I can even give my application in ChromeCast. However, when I include MediaRouteras a dependency, I get a weird style (or lack thereof) for a button with a floating action.

Here is the correct stylized button:

with the right style

And this is what happens when I add the dependency MediaRouter:

no style

// 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'
    // ...

Any thoughts on what might be causing this or how I should eliminate it?

+4
source share
1 answer

, .

+1

Source: https://habr.com/ru/post/1687425/


All Articles