title: Change background image for TextView at runtime
body: <p>I'm developing my first app and I need to display a larger image of a thumbnail that I click on to be set as the background for a text in a different fragment.</p>
  
  <p>I'm trying to change the background image for a textview using</p>
  
  <pre><code>textView.setBackground(getResources().getDrawable(R.drawable.user_placeholder_image));
  </code></pre>
  
  <p>In order to minimize the bandwidth usage, I was hoping to download the backdrop image only when the thumbnail is clicked. In other words, is there a way to store resources to the drawable folder at runtime? If not, then is there any other alternative? </p>
  
  <p>Thanks for the help!</p>