I need to set a value of opacity to a color in xml drawable. But when i try to add the two values of opacity (#20C0C0C0) for example, don't work. The color appeares totaly transparent.
Here is my code...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<corners
android:radius="2dp" />
<solid
android:color="#CDCDCD" />
<stroke
android:width="2dp"
android:color="@android:color/darker_gray" />
<size
android:height="60dp"
android:width="80dp"/>
</shape>
Anyone have an idea? Thanks for your help.