Android Question [Solved] B4XPreferencesDialog and phone number

asales

Expert
Licensed User
Longtime User
There is a way to show automatically the (phone) keyboard, with numbers and characters, to fill a phone field in the B4XPreferencesDialog?
1707060329031.png

The AddNumberItem and AddDecimalNumberItem show only the numbers and I cannot use the "( ) -" characters.

Thanks in advance for any tips.
 
Solution
The AddNumberItem and AddDecimalNumberItem show only the numbers and I cannot use the "( ) -" characters.
Did you try this:
B4X:
For i = 0 To prefdialog.PrefItems.Size - 1
        Dim pi As B4XPrefItem = prefdialog.PrefItems.Get(i)
       If pi.ItemType = prefdialog.TYPE_NUMBER Then
            Dim n As B4XFloatTextField = prefdialog.CustomListView1.GetPanel(i).GetView(0).Tag
            Dim et As EditText= n.TextField  
            et.InputType=et.INPUT_TYPE_PHONE
        End If


next

Mahares

Expert
Licensed User
Longtime User
The AddNumberItem and AddDecimalNumberItem show only the numbers and I cannot use the "( ) -" characters.
Did you try this:
B4X:
For i = 0 To prefdialog.PrefItems.Size - 1
        Dim pi As B4XPrefItem = prefdialog.PrefItems.Get(i)
       If pi.ItemType = prefdialog.TYPE_NUMBER Then
            Dim n As B4XFloatTextField = prefdialog.CustomListView1.GetPanel(i).GetView(0).Tag
            Dim et As EditText= n.TextField  
            et.InputType=et.INPUT_TYPE_PHONE
        End If


next
 
Upvote 2
Solution
Top