For i = 0 To pref.PrefItems.Size - 1
Dim pi As B4XPrefItem = pref.PrefItems.Get(i)
If pi.ItemType = pref.TYPE_TEXT Then
Dim ft As B4XFloatTextField = pref.CustomListView1.GetPanel(i).GetView(0).Tag
ft.TextField.SetTextAlignment("CENTER", "RIGHT")
' If ft.Text.Contains("soccer") Then ft.TextField.SetTextAlignment("CENTER", "LEFT")
else If pi.ItemType = pref.TYPE_MULTILINETEXT Then
Dim ft As B4XFloatTextField = pref.CustomListView1.GetPanel(i).GetView(0).Tag
ft.TextField.SetTextAlignment("CENTER", "RIGHT")
' If ft.Text.Contains("soccer") Then ft.TextField.SetTextAlignment("CENTER", "LEFT")
Else If pi.ItemType = pref.TYPE_NUMBER Then
Dim ft As B4XFloatTextField = pref.CustomListView1.GetPanel(i).GetView(0).Tag
ft.TextField.SetTextAlignment("CENTER", "RIGHT")
' If ft.Text.Contains("soccer") Then ft.TextField.SetTextAlignment("CENTER", "LEFT")
End If
Next