Numeric Keypad for textbox using set attribute widget giving issue in android

Hi All,   I have a text box for which i am using set attribute widget as following as i need only digits to be entered. This is working fine for iOS devices but in android device it is also accepting '.' and '-' along with the digits. So how can i make it work for android also?   Also, when i type '.' or '-' from keypad the value is taken as empty. Can  anybody think about the reason behind this?   Thanks,
1 answers

Could you try adding: min and step as well? So you'll get:

    <input type="number" min="0" step="1"/>