How to change style of a default EditText

后端 未结 6 1744
余生分开走
余生分开走 2020-11-27 16:16

I am creating three EditTexts in my xml file using code like this:



        
6条回答
  •  失恋的感觉
    2020-11-27 16:43

    I solved the same issue 10 minutes ago, so I will give you a short effective fix: Place this inside the application tag or your manifest:

     android:theme="@android:style/Theme.Holo"
    

    Also set the Theme of your XML layout to Holo, in the layout's graphical view.

    Libraries will be useful if you need to change more complicated theme stuff, but this little fix will work, so you can move on with your app.

提交回复
热议问题