Wednesday, 15 July 2015

android - Edittext styling not opening keyboard -


I'm making style for all edits in style.

  & lt; Style name = "edittextStyle" & gt; & Lt; Item name = "Android: Drawing Padding" & gt; 10dp & lt; / Item & gt; & Lt; Item name = "Android: Background" & gt; @drawable / white_frown & lt; / Item & gt; & Lt; Item name = "android: textcolor" & gt; @color / black & lt; / Item & gt; & Lt; Item name = "android: textColorHint" & gt; @color / gray & lt; / Item & gt; & Lt; Item name = "Android: Single line" & gt; True & lt; / Item & gt; & Lt; Item name = "Android: Padding" & gt; 5dp & lt; / Item & gt; & Lt; Item name = "Android: Gravity" & gt; Centrally & lt; / Item & gt; & Lt; / Style & gt; & Lt; Style name = "Aaptim" parent = "appbashtheme" & gt; & Lt; Item name = "android: editTextStyle" & gt; @ Style / adtxstyle & lt; / Item & gt; & Lt; Item name = "Android: text size" & gt; @ Dimen / font_medium & lt; / Item & gt; & Lt; / Style & gt;  

This is working as expected and all the edits have been styled with a white background. But they are not receiving input.

If I put style attribs directly to edittext, it is getting input. What am I missing?

@Alex received the answer. F, this was the trick.

Change

  & style; Name = "edittextStyle" & gt;  

to

  & lt; Style name = "edittextStyle" parent = "widget.AppCompat.EditText" & gt;  

No comments:

Post a Comment