Sub rb_CheckedChange(Checked As Boolean)
Dim r As RadioButton = Sender
Panel_mit_Radius.Height = 36%y
Panel_mit_Radius.RemoveAllViews
If 1 = r.Tag Then 'give radiobutton1 a tag of 1, the other one a tag o2 in the designer
Dim cd As ColorDrawable
cd.Initialize2(Colors.Red, 20dip, 6dip, Colors.Black)
Panel_mit_Radius.Background = cd
HorizontalScrollView1.Initialize(100%x, "HorizontalScrollView1")
Panel_mit_Radius.AddView(HorizontalScrollView1, 2%x, 7%y, 20%x, Panel_mit_Radius.Height - 10%y)'63%y)
HorizontalScrollView1.Panel.RemoveAllViews
Else
Dim cd As ColorDrawable
cd.Initialize2(Colors.green, 20dip, 6dip, Colors.Black)
Panel_mit_Radius.Background = cd
HorizontalScrollView2.Initialize(100%x, "HorizontalScrollView2")
Panel_mit_Radius.AddView(HorizontalScrollView2, 2%x, 7%y, 20%x, Panel_mit_Radius.Height - 10%y)'63%y)
HorizontalScrollView2.Panel.RemoveAllViews
End If
Canvas1.Initialize(Panel_mit_Radius)
Canvas1.DrawLine(30dip, 10dip, 30dip, 50dip, Colors.Black, 3dip) 'Y-Koordinate
' Activity.Invalidate
End Sub