Default Done button on Android Mediacontroller
I want done button in Android Mediacontroller as in iPhone Mediaplayercontroller by default. Is there an开发者_如何学JAVAy facility in Android Mediacontroller? I will be thankful for any help.
Your question is very vague, you are more likely to get the help you are looking for if you give more details about what exactly you are trying to accomplish. And if you state what you've already tried and why/how it didn't work.
The MediaController object does not contain a done button by default though. In order to add one all you'd have to do is subclass MediaController and add your own Button to it and handle the clicks to make them do whatever you like. Then you can call mp.setMediaController() and pass it your own custom MediaController instead of the default one.
精彩评论