Sub AddItem (m As Map)
Dim pnl As B4XView = xui.CreatePanel("")
pnl.SetLayoutAnimated(0, 0, 0, list.AsView.Width, 145dip)
pnl.LoadLayout("Item") 'pnl is loaded with views
Dim title As B4XFloatTextField = pnl.GetView(TitleIndex).Tag 'Why is it assigning TAG to B4XFloatTextField?
Dim options As B4XFloatTextField = pnl.GetView(OptionsIndex).Tag 'Why is it assigning TAG to B4xFloatTextField?
Dim cmb As ComboBox = pnl.GetView(TypesIndex)
Dim Key As B4XFloatTextField = pnl.GetView(KeyIndex).Tag 'Why is it assigning TAG to B4XFloatTextField?
Dim switch As B4XSwitch = pnl.GetView(RequiredIndex).Tag 'Why is it assigning TAG to B4XSwitch?
...