Is there any way to increase the font size in toast without customizing?
I don't want to create a layout for increasing the text size.
Is there any way?
Thanks,
Niki
Is there any way to increase the font size in toast without customizing?
I don't want to create a layout for increasing the text size.
Is there any way?
Thanks,
Niki
I believe it is achieveable by this:
Here is how to do that with spans:
this is ...
You can try to put the following code into your Manifest:
Put it above the
<Application>
element.Working from Ani's answer, another solution that allows you to set the text size to a dimension value would be something like:
This lets you match the size you get your toasts to be the same size as specified in TextView and Button controls, for example.
You can't increase the font size without creating a
CustomToastView
.This is a related question.