android - Chromecast custom selector dialog -


is there way make custom chromecast selector dialog? have been looking through documentation , can't find on how this.

example

you can that:

  1. first, extend mediaroutechooserdialogfragment, , call that, say, mychooserdialogfragment.
  2. next, extend mediaroutedialogfactory (call that, say, mymediaroutedialogfactory) , override method oncreatechooserdialogfragment(). in there, need return instance of mychooserdialogfragment:

    public mediaroutechooserdialogfragment oncreatechooserdialogfragment() {     return new mychooserdialogfragment(); } 
  3. finally, set factory on action provider:

    mediarouteactionprovider.setdialogfactory(new mymediaroutedialogfactory()); 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -