I was trying to apply shadow effect for my views and find out that I could use gradient to do it.
I created an XML file
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:endColor="@android:color/transparent"
android:centerColor="@android:color/transparent"
android:startColor="@android:color/black"
android:angle="135"/>
</shape>
This works fine, but I needed to make it more like a shadow.
What I need is to remove the transition effect in gradient because I only need two colors in one view applied diagonally. How to do it?