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 video we will build a simple dice roller app. We will display our dice as images in an ImageView. When we click on it, we generate a random number between 1 and 6 and then show the results by setting the appropiate dice image on our ImageView with the setImageResource method.