In Xamarin Android, how to make a form completely transparent?
In my layout XML....
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id ="@+id/LLBack"
android:background="@android:color/transparent"
>
</LinearLayout>
In my OnCreate...
LinearLayout ll = FindViewById<Android.Widget.LinearLayout>(Resource.Id.LLBack);
ll.SetBackgroundColor (Android.Graphics.Color.Transparent);`
but dont work :(
You can add a style to file styles.xml as follows:
And apply the style to your activity: