如何使LinearLayout透明背景?

问题描述:

我想在线性布局中制作透明背景,我想在地图中显示圆形对话框,但我的背景显示为白色。如何使LinearLayout透明背景?

Image

任何机构有这方面的任何建议。

+0

请出示你的代码。 –

+0

可以将背景设置为Dialog例如像这样:

View dialogView = LayoutInflater.From(this).Inflate(Resource.Layout.layout1, null); 

Dialog dialog = new Dialog(this); 
dialog.SetContentView(dialogView); 
dialog.Window.SetBackgroundDrawable(new ColorDrawable(Color.Transparent)); 
dialog.Show();