Add gradient in edit text border in android
<p>I want to add gradient only to the border of my editText , I can add gradient but it takes the entire background . How can I apply gradient only to the border , and the rest should be transparent?</p>

<p><a href="https://i.stack.imgur.com/3xURY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3xURY.jpg" alt="enter image description here"></a></p>