Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EditText et = new EditText(this, null, Resource.Style.CodeFont);
- <resources>
- <style name="CodeFont" parent="@android:style/TextAppearance.Medium">
- <item name="android:layout_width">fill_parent</item>
- <item name="android:layout_height">wrap_content</item>
- <item name="android:textColor">#FF0000</item>
- <item name="android:typeface">monospace</item>
- </style>
- </resources>
- style="@style/CodeFont"
- <style name="CodeFont" parent="@android:style/Widget.EditText">
- <item name="android:layout_width">fill_parent</item>
- <item name="android:layout_height">wrap_content</item>
- <item name="android:textColor">#FF0000</item>
- <item name="android:textAppearance">@android:style/TextAppearance.Medium</item>
- <item name="android:typeface">monospace</item>
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement