android - Appearance of 'play' button -


I am playing an audio file using the MediaPlayer class. At the moment I start playback by pressing a normal button (which displays 'Play') which I created in the layout file. I want to know that if it is possible to show the button in the default Android playback / pause / stop button without using imagebutton , then I want only one button, so I MediaController Do not even want to use the default play / pause / stop button for Android? Cheers

You can find a list of Android's default designs:

And I think, what you need ic_media_play, ic_media_pause.

You can use them resource ID: android.ic_media_play

Here you can follow another old link which you can do:


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

Powerbuilder 12.1 and DataWindow in Design vs Debug and Executable/Runtime -

css3 - HTML Block Anchor element only half clickable in Chrome -