Dim BotonTop As Double = 10
For Each opciones As String In listaopciones.Keys
Dim xpnl_RadioButton As B4XView = xui.CreatePanel("")
xpnl_RadioButton.SetLayoutAnimated(0, 0, 0, 500dip, 25dip)
Dim m_Properties As Map
m_Properties.Initialize
m_Properties.Put("Value",False)
m_Properties.Put("OnColor",0xFF000000)
m_Properties.Put("OffColor",0xFFCACACA)
Dim lbl As Label
lbl.Initialize("")
Dim rb1 As B4XRadioButton
rb1.Initialize(Me,"rb1")
rb1.DesignerCreateView(xpnl_RadioButton,lbl,m_Properties)
rb1.Text = opciones
rb1.Tag = listaopciones.GetValueAt(opciones)
Dim PR As B4XView = PaneRadio
PR.AddView(xpnl_RadioButton,15, BotonTop, 500dip,25dip)
BotonTop = BotonTop + 30
Next
Private Sub rb1_SelectedChange(Selected As Boolean)
End Sub