How do you underline a text in an XML file? I can\'t find an option in textStyle.
textStyle
If you want to compare text String or the text will change dynamically then you can created a view in Constraint layout it will adjust according to text length like this