android - Chromecast custom selector dialog -
is there way make custom chromecast selector dialog? have been looking through documentation , can't find on how this.
you can that:
- first, extend mediaroutechooserdialogfragment, , call that, say,
mychooserdialogfragment. next, extend
mediaroutedialogfactory(call that, say, mymediaroutedialogfactory) , override methodoncreatechooserdialogfragment(). in there, need return instance ofmychooserdialogfragment:public mediaroutechooserdialogfragment oncreatechooserdialogfragment() { return new mychooserdialogfragment(); }finally, set factory on action provider:
mediarouteactionprovider.setdialogfactory(new mymediaroutedialogfactory());

Comments
Post a Comment