How to use Typeface for AlertDialog in Kotlin

How to use Typeface for AlertDialog in Kotlin
January 13, 2019 No Comments Android Development,Development Pushpendra Kumar



typeface in kotlin

That awesome that you would like to make your android application more beautiful with the help of custom typeface in your android application. Here you can also get the typeface for the alert dialog box. 

So very first get the fonts file which you want to use into your android application. For this tutorial, I am using google fonts

Download fonts and copy into your project with folder name assets. Like that..

Learn how to implement typeface in android alertdialog box

Awesome now do some coding – in your Kotlin file 



Wonderful now write some line of code into your xml file as mention below. 

You can learn more about kotlin tutorial like as –
How to check the instanceof anything in android Kotlin , Custom adapter for RecyclerView in Android with Kotlin, How To Work With LayoutInflater In Kotlin and much more…!!

Wish you good luck happy coding 🙂




Tags
About The Author
Pushpendra Kumar I am passionate about mobile application development and professional developer at Colour Moon Technologies Pvt Ltd (www.thecolourmoon.com). This website I have made so that I can meet with new challenges and can share here.

Leave a reply

Your email address will not be published. Required fields are marked *