Jedes Bild-Asset, das ich meinem Projekt in Android Studio hinzufüge, wird mit einer Deckkraft von etwa 0,5 hinzugefügt, und ich kann seine Opazität nicht programmgesteuert mit der setAlpha-Methode ändern.Android Image Asset Opacity
Ich füge es als Action Bar und Tab Icons Typ und als Asset Typ: Bild.
Hat jemand anderes dieses Problem? Das Asset mit einer Deckkraft von 1 ist ziemlich wichtig für das, was ich versuche zu tun.
profileButton = (ImageView) findViewById(R.id.profileButton);
profileButton.setAlpha(1f);
Gelöst: War nichts mit Android verwandt. Es tut uns leid.
Bitte Code Ihrer Verwendung der setAlpha Methode hinzufügen. – smora
profileButton = (ImageView) findViewById (R.id.profileButton); profileButton.setAlpha (1f); – Matt