Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom layout inflation error #11

Open
Mani1124 opened this issue Dec 26, 2017 · 3 comments
Open

custom layout inflation error #11

Mani1124 opened this issue Dec 26, 2017 · 3 comments

Comments

@Mani1124
Copy link

No description provided.

@githeyj
Copy link

githeyj commented Nov 7, 2018

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

@bluefirepatrick
Copy link

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.

@guenter47
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants