title: How to change the background color of an ImageView using for example a SeekBar?
body: <p>I would like to do the following:</p>
  
  <ol>
  <li>I have a <code>LinearLayout</code> with several <code>ImageViews</code> with background colors defined in their xml.</li>
  <li>I have a <code>SeekBar</code>.</li>
  <li>By moving the <code>Seekbar</code> I should change the colors of the <code>Imageviews</code> background.</li>
  </ol>
  
  <p>I would like to save the default background colors but can`t find getbackgroundcolor method, only setbackground method.</p>
  
  <p>Later I would like to change the colors as the <code>Seekbar</code> is progressing.</p>
  
  <p>I have something like this now:</p>
  
  <pre><code>public void onProgressChanged(SeekBar seekBar, int progress,
                  boolean fromUser) {
      // TODO Auto-generated method stub
      int test = seekBar.getProgress();
      //textView.setText("Valami" + test);
      switch (test) {
      case 0:             
          imageView0.setBackgroundColor(Color.RED);
          imageView1.setBackground(Color.YELLOW);
          break;
      case 1:
          imageView0.setBackgroundColor(Color.BLACK);
          imageView1.setBackgroundColor(Color.BLACK);  
          break;
      case 2:
          imageView0.setBackgroundColor(Color.WHITE);
          imageView1.setBackgroundColor(Color.YELLOW);
         break;
  }
  </code></pre>
  
  <p>I think this is not the right way, and I would like to change their color by getting the actual <code>SeekBar</code> progress value. For example add some value to the original color code based on the progress value.</p>
  
  <p>This is my idea, but I don`t know how to implement it.</p>
  
  <p>Thanks for your help!</p>