我们怎样才能提高面包的字体大小? [英] How can we increase the font size in toast?

查看:147
本文介绍了我们怎样才能提高面包的字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么办法可以增加面包的字体大小不定制?

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.

有什么办法?

谢谢

尼基

推荐答案

我相信这是achieveable通过这样的:

I believe it is achieveable by this:

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

这篇关于我们怎样才能提高面包的字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆