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 -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -