I want to create a custom gradient & apply it to the background of a LinearLayout.
Here is code for the gradient:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:startColor="#31527B"
android:endColor="#20426F"
android:angle="270"/>
</shape>
I need a gradient as the one below:
Somehow I'm not getting this effect. Am I doing something wrong in terms of angle etc / do I need to apply some more attributes to gradient?