title: Change int color opacity in java/android
body: <p>I am trying to change the opacity of a color that I get of my theme with the next code:</p>
  
  <pre><code>TypedValue typedValueDrawerSelected = new TypedValue();
  getTheme().resolveAttribute(R.attr.colorPrimary, typedValueDrawerSelected, true);
  int colorDrawerItemSelected = typedValueDrawerSelected.data;
  </code></pre>
  
  <p>I want that the <code>colorDrawerItemSelected</code> keeps the same color, buth its alpha should be 25%.</p>
  
  <p>I found some solutions getting the rgb color from the imageView, but I havent imageView.</p>
  
  <p>Thank you for your time.</p>