Transparent black gradient shape drawable Farbcode
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#000"
android:centerColor="#00000000"
android:endColor="#000"
android:angle="270"
android:dither="true"
/>
</shape>
Dies ist der code, den ich versucht, aber es endet als reines schwarz.
Sie misspelt Butler. Jemand offensichtlich nicht haben! spotten spotten
InformationsquelleAutor Dev-X | 2014-05-12
Du musst angemeldet sein, um einen Kommentar abzugeben.
Was ist mit diesem Verlauf? Volle Transparenz an der Spitze zu 50% transparent, schwarz unten
Wirklich hilfreich!!!!!! @Rotwang
Froh, dass es dir geholfen! 😉
InformationsquelleAutor Fantômas
Versuchen Sie dies:
Ändern Sie einfach FF in endColor zu jeder alpha-Wert
InformationsquelleAutor FD_
Fügen Sie Ihre Klasse mit diesem code
InformationsquelleAutor Madi
InformationsquelleAutor Dmitriy Melekhov