Search code examples
androidxmltransparency

Not transparented layout


i have fixed LinearLayout, like this

<LinearLayout
android:orientation="vertical"
android:layout_width="188dp"
android:layout_height="match_parent"
android:paddingTop="15dp"
android:paddingLeft="15dp"
android:layout_weight="1.02">

That's how it looks like

enter image description here

and its transparented, but it must be white, so how can i do it?


Solution

  • Add the background color to be what you want

    android:background="@android:color/white"