plugins - Can i use font-awesome in android's edittext? -


i have added font-awesome .tff file assets folder, initlaized of icons in strings.xml file, changed typefaces of entities use font-awesome in , tried using font-awesome on buttons , worked, did same edittexts there strings of numbers instead of icon. idea can do?

ans: set string directly in xml like:
android:text="&#xf042"; , use typeface set in edittext ,like

typeface font_awesome =  typeface.createfromasset(getassets(),"fontawesome-webfont.ttf"); app_menutxt.settypeface(font_awesome); 

in programme : app_menutxt.settext("\uf042");


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -