code: private void setupThumbnails() {
          int defaultTextBgColor = 0xFFAAAAAA;
          int textBgColorForNoImage = 0xFF87170B;
  
          mThumbnail1.recycle(R.drawable.c1, R.string.image1, defaultTextBgColor, true, false);
          mThumbnail2.recycle(R.drawable.c2, R.string.image2, defaultTextBgColor, false, false);
          mThumbnail3.recycle(R.drawable.c3, R.string.image_from_cloud, defaultTextBgColor, false, true);
          mThumbnail4.recycle(-1, R.string.no_image, textBgColorForNoImage, false, false);
  
          mThumbnail1.setOnClickListener(this);
          mThumbnail2.setOnClickListener(this);
          mThumbnail3.setOnClickListener(this);
          mThumbnail4.setOnClickListener(this);
      }
docs: Setup thumbnails