Sub Activity_Create(FirstTime As Boolean)
Dim bc As BitmapCreator
Dim layerPath As BCPath
Dim layerImg As B4XBitmap = xui.LoadBitmapResize(File.DirAssets, "layer_0.png", 100%x, 100%y, False) 'don't keep aspect ratio or there will be holes in the brush
bc.Initialize(100%x, 100%y)
Dim layerBrush As BCBrush = bc.CreateBrushFromBitmap(layerImg)
layerPath.Initialize(0, 0).LineTo(0, 16%y).LineTo(20%x, 22%y).LineTo(80%x, 22%y).LineTo(100%x, 16%y).LineTo(100%x, 0).LineTo(0, 0)
bc.DrawPath2(layerPath, layerBrush, True, 0)
bc.DrawArc(35%x, 22%y, 10%x, xui.Color_Transparent, True, 0, 180, 180)
bc.DrawArc(65%x, 22%y, 10%x, xui.Color_Transparent, True, 0, 180, 180)
Activity.SetBackgroundImage(bc.Bitmap)
End Sub