Android Question EditText properties

sultan87

Active Member
Licensed User
Longtime User
Hello,
on EditText, by code, I can write

txt_num_tel.TextColor = Colors.Cyan
txt_num_tel.TextSize = 30
txt_num_tel.Gravity = Gravity.LEFT
txt_num_tel.Gravity = Gravity.CENTER_VERTICAL

how to change the properties Input Type to Phone ?

Best Regards
 

Kwame Twum

Active Member
Licensed User
Longtime User
edittext1.InputType = edittext1.INPUT_TYPE_NUMBERS

you can also do it with the designer

property.png
 
Upvote 0
Top