title: set imageview tint color programmatically
body: <p>hi i have problem with set <strong>tint</strong> color .. i want when choose color from <strong>color int</strong> Changes the color of the <strong>imageview</strong> with the same color <strong>i selected</strong> So when i click on color the imageview dont change the tint</p>
  
  <hr>
  
  <p>Noticeable: imageview use Drawable with default white color</p>
  
  <p>Noticeable: i don't want change Drawable color because it well use for many image view with different colors</p>
  
  <p>Noticeable:Toast work perfectly fine.</p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
          View v = inflater.inflate(R.layout.dialog_lib, container, false);
  
          SpectrumPalette spectrumPalette = (SpectrumPalette) v.findViewById(R.id.palettelib);
          spectrumPalette.setOnColorSelectedListener(this);
  
  
          ImageView img = (ImageView) v.findViewById(R.id.viewr);
  
  
          return v;
      }
      @Override
      public void onColorSelected(@ColorInt int color) {
          Toast.makeText(getContext(), "Color selected: #" + Integer.toHexString(color).toUpperCase(), Toast.LENGTH_SHORT).show();
          if(color==0){
              ImageViewCompat.setImageTintList(img, ColorStateList.valueOf(color));
          }if(color==1){
              ImageViewCompat.setImageTintList(img, ColorStateList.valueOf(color));
          }if(color==2){
              ImageViewCompat.setImageTintList(img, ColorStateList.valueOf(color));
          }if(color==3){
              ImageViewCompat.setImageTintList(img, ColorStateList.valueOf(color));
          }if(color==4){
              ImageViewCompat.setImageTintList(img, ColorStateList.valueOf(color));
          }
  
  
      }
  </code></pre>
  
  <hr>
  
  <p>Xml code</p>
  
  <pre><code>   &lt;com.thebluealliance.spectrum.SpectrumPalette
          android:id="@+id/palettelib"
          app:spectrum_autoPadding="true"
          app:spectrum_colors="@array/demo_colors"
          app:spectrum_columnCount="12"
          app:spectrum_outlineWidth="2dp" /&gt;
  </code></pre>
  
  <hr>
  
  <p>Color array File</p>
  
  <pre><code> &lt;color name="white"&gt;#FFFFFF&lt;/color&gt;
      &lt;color name="orange"&gt;#FF8B00&lt;/color&gt;
      &lt;color name="deep_purple"&gt;#5A1ACC&lt;/color&gt;
      &lt;color name="light_blue"&gt;#03A9F4&lt;/color&gt;
      &lt;color name="green"&gt;#4CAF50&lt;/color&gt;
      &lt;color name="deep_yellow"&gt;#F7FF00&lt;/color&gt;
      &lt;color name="blue_grey"&gt;#072DEE&lt;/color&gt;
      &lt;color name="pink"&gt;#E91E63&lt;/color&gt;
      &lt;color name="brown"&gt;#795548&lt;/color&gt;
      &lt;color name="purple"&gt;#9C27B0&lt;/color&gt;
      &lt;color name="deep_red"&gt;#C50C0C&lt;/color&gt;
      &lt;color name="teal"&gt;#00887D&lt;/color&gt;
  
  
      &lt;array name="demo_colors"&gt;
          &lt;item&gt;@color/white&lt;/item&gt;
          &lt;item&gt;@color/deep_red&lt;/item&gt;
          &lt;item&gt;@color/orange&lt;/item&gt;
          &lt;item&gt;@color/deep_yellow&lt;/item&gt;
          &lt;item&gt;@color/brown&lt;/item&gt;
          &lt;item&gt;@color/purple&lt;/item&gt;
          &lt;item&gt;@color/pink&lt;/item&gt;
          &lt;item&gt;@color/deep_purple&lt;/item&gt;
          &lt;item&gt;@color/light_blue&lt;/item&gt;
          &lt;item&gt;@color/blue_grey&lt;/item&gt;
          &lt;item&gt;@color/green&lt;/item&gt;
          &lt;item&gt;@color/teal&lt;/item&gt;
  </code></pre>