Is there any possibility to draw a rectangle shape with any hex color with opacity for that color
for example blue_color_background.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid
android:color="#29618E"/>
<corners
android:radius="@dimen/_10sdp"/>
</shape>
The above code is a normal rectangle shape with a radius of 10dp
But I want the given opacity for the shape without changing the hex code. And how to achieve this