NumberPicker icon indicating copy to clipboard operation
NumberPicker copied to clipboard

custom layout inflation error

Open Mani1124 opened this issue 7 years ago • 3 comments

Mani1124 avatar Dec 26 '17 07:12 Mani1124

Caused by: java.lang.ClassCastException: android.support.v7.widget.AppCompatTextView cannot be cast to android.widget.EditText Probably you this is the cause?

githeyj avatar Nov 07 '18 08:11 githeyj

I found that when using androidx I too got an inflation error on the custom layout when it tried to cast TextView to an EditText. I was able to fix the situation by replacing the TextView tag in the sample number_picker_custom_layout code with an EditText tag.

bluefirepatrick avatar Feb 10 '19 20:02 bluefirepatrick

@traviju: Can you please include bluefirepatrick's solution in your readme. It saves a lot of searching and time!

guenter47 avatar Feb 28 '21 13:02 guenter47