This example uses "old" api with xml layout (also, it has some deprecated functions, outdated versions) Could you update all chromecast stuff to use compose? its a nightmare creating a compose app and not be able to add cast button without making a mess.