有没有一种方法来定制的MediaController?我需要改变按钮的风格,搜索栏等。
Is there a way to customize the MediaController? I need to change the style of buttons, SeekBar etc.
makeControllerView
本来是被覆盖,所以你可以提供自己的观点的方法。不幸的是,它是隐藏的时刻。
The method makeControllerView
was meant to be overridden so you could supply your own view. Unfortunately, it is hidden at the moment.
您可能需要采取的MediaController的来源,要么重新实现它,或者复制 - 粘贴隐藏的方法到子类,所以你可以自定义它。
You may want to take the source of MediaController and either reimplement it or copy-and-paste the hidden methods into a subclass so you can customize it.