android - How to change the default EditText text size -
i trying change default edittext
style, have done textview
style following way:
<style name="mytextviewstyle" parent="android:widget.textview"> <item name="android:textcolor">@color/pink</item> <item name="android:textsize">@dimen/textsize</item> </style>
and using android:textviewstyle style
<style name="appbasetheme" parent="theme.appcompat.light"> <item name="android:textviewstyle">@style/mytextviewstyle</item> </style>
how can achieve same edittext
?
you use code in project can required edittext style throughout project...
<style name="myapptheme" parent="android:theme.light"> <item name="android:edittextstyle">@style/customedittextstyle</item> </style> <style name="customedittextstyle"> <item name="android:background">@drawable/edittxt_shape</item> <item name="android:clickable">true</item> <item name="android:enabled">true</item> <item name="android:focusable">true</item> <item name="android:focusableintouchmode">true</item> <item name="android:gravity">center_vertical</item> </style>
and add line in mainfest file
<application android:theme="@style/myapptheme" > ... </application>
all best
Comments
Post a Comment