Please accept YouTube cookies to play this video. By accepting you will be accessing content from YouTube, a service provided by an external third party.

YouTube privacy policy

If you accept this notice, your choice will be saved and the page will refresh.

 

Show the video description

In this quick tutorial we will learn, how to generate a random color in Android Studio using the Color.argb method and how to apply it to the background of our layout when clicking a Button.