0

I would like to get the id of the buttons (play, pause, next, previous) inside the mediacontroller. I was able to successfully do that for seekbar following this piece of code:

final int topContainerId = getResources().getIdentifier("mediacontroller_progress", "id", "android");

How about for the buttons?

Thank you! :)

kdroider
  • 731
  • 5
  • 20

1 Answers1

0

If you want to customize the MediaController, it is possible but it is a very long shot. You have to re-write the MediaController class all over again extending a FrameLayout which you could customize.
I tried to do that but it was way too complicated.
I advise you to use the MediaPlayer class , build your own layout. Thats far more easier.

Lazy Ninja
  • 22,342
  • 9
  • 83
  • 103
  • Aw. Thank you. I was just hoping that it is possible without having to go through the complicated steps and without switching to MediaPlayer implementation. But it appeared I have to consider your alternatives. Thanks to this immediate response, I am giving you a check. :) – kdroider Dec 17 '12 at 01:44
  • Thanks! If you need help on MediaPlayer, please ask. – Lazy Ninja Dec 17 '12 at 01:51