Transparent View over Linear Layout in Android

android, android-layout

Solution

In XML set Background attribute to any colour White(#FFFFFF) shade or Black(#000000) shade.if you want transparancy just put 80 before the actual hash code.

#80000000   

If you add any number from 01 to 99 before the actual hash code, it will give you the transparency. Eg: Black with more transparency - #10000000 Black with less transparency - #99000000

Problem

Hello I am making an android application where I need to place a transparent view over a `LinearLayout`. See in the screenshot View where "04" is written is transparent but not completely. Any idea to make this view transparent with some color. I made the `LinearLayout` with rounded and set the color also. ``` <LinearLayout android:id="@+id/thirdLinearLayout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/secondRelativeLayout" android:background="@drawable/clock_check_in_rounded_drawable" android:orientation="horizontal" > </LinearLayout> ``` clock_check_in_rounded_drawable.xml ``` <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="@color/cyan_text_color" /> <corners android:radius="10dp" /> </shape> ```

Original source

Related problems