How can we increase the font size in toast?

Niki picture Niki · Mar 11, 2011 · Viewed 37.9k times · Source

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

Answer

slezadav picture slezadav · Nov 5, 2012

I believe it is achieveable by this:

    ViewGroup group = (ViewGroup) toast.getView();
    TextView messageTextView = (TextView) group.getChildAt(0);
    messageTextView.setTextSize(25);