Android

【Android Studio】How to display HTML text in AlertDialog

 

 

Introduction

In this video, I’m going to share how to display HTML text in AlertDialog.
 

 
 

I’ve used only <p> <b> <a> this time, but you’ll be able to use any HTML tags in the message.

Hope this helps 🙂

 
 

Environment

Android Studio 3.4
Emulator: Nexus 5 (API 27)

 
 

Video

【Android Studio】How to display HTML text in AlertDialog

 
 

Sample Code

 

ABOUT ME
Sara
Working as a freelance programmer in Japan. I try to make coding as simple as possible. Hope you enjoy coding 🙂