I have a button which is transparent and has an icon and text.
I want to underline the text of the button but i have not been able to do this.
Below is my
Use this:
TextView txt=(TextView)findViewById(R.id.txt); String styledText = "parking areas"; txt.setText(Html.fromHtml(styledText), TextView.BufferType.SPANNABLE);