Created
August 9, 2017 04:46
-
-
Save farooqkhan003/9e3de593440cbc79b60c7ed7b21adc59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.androidtechpoint.Util; | |
import android.content.Context; | |
import android.graphics.Typeface; | |
import android.util.AttributeSet; | |
import android.widget.EditText; | |
/** | |
* Created by farooq on 8/8/2017. | |
*/ | |
public class CustomEditText extends android.support.v7.widget.AppCompatEditText { | |
public CustomEditText(Context context, AttributeSet attrs, int defStyle) { | |
super(context, attrs, defStyle); | |
init(); | |
} | |
public CustomEditText(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
init(); | |
} | |
public CustomEditText(Context context) { | |
super(context); | |
init(); | |
} | |
private void init() { | |
if (!isInEditMode()) { | |
setTypeface(Typeface.MONOSPACE); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment