I wanted to use an editText with the type number.
If you use this, it doesn´t work:
Number editText = (Number) v.findViewById(R.id.editText);
The error is at
Number editText = (Number) v.findViewById(R.id.editText);
It says:
Inconvertible types; cannot cast
android.view.View
tojava.lang.Number
The solution is easy (thanks to @Ehsan for the helpful answer):
Edittext editText = (Edittext) v.findViewById(R.id.editText);