Hi i'm trying to create a button with multiple lines of text. See below example. Each line of text has a different text size and colour applied to it. The button also needs to be able to send the user to the next page. Is this possible in XML? I've looked everywhere and can't find a solution. Thanks.
BUTTON HEADING TEXT(large green font) 1st button text (small grey font) 2st button text (small white font)
See example:
Picture is not accessible. but according to your problem, you can implement a LinearLayout as main componenet and set its property clickable and focusable, and set its background to android.R.drawable.btn_default. Set orientation of this layout to Vetical.
Add as many TextViews of any style in this linearlayout in xml or dynamically as you want. But set all the TextViews focusable and Clickable property to false.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With