Jason Connery

no time.

EditText Not Showing a Keyboard After Styling?

You are doing some android development. You’ve just made a style for your controls on a screen.

You apply it with something like this :

<EditText android:id="whatever" style="@style/myNewStyle" />

And everything looks good. But then, the keyboard doesn’t work. Make sure your style has the default android style as it’s parent. There’s some stuff relating to touch in here. like this:

<style name="myNewStyle" parent="@android:style/Widget.EditText">...</style>

I just spent a while trying to figure out why my edit text wasn’t working after I changed the background via a style in my theme. Didn’t find anything on google, so maybe someone will stumble across this.