根据可用空间自我调整文本大小

问题描述:

我试图执行以下操作:根据可用空间自我调整文本大小

给定最大尺寸(例如400x400)。制作大小不一的文字以填充空格。例如,如果所需的文本是“A”,它将具有较高的textSize值,但是如果我放了一个长句子,它的textSize应该减小以适应大小。

是否可以轻松实现?谢谢

取决于您的经验水平。 “轻松”是主观的。有implementations那里提供体面的起始位置。

Give the textview fill_parent hight and width so that as you type e.g ASDF then it will automatically reduce size and if only "A" then it will show max hight and widht. 
This textview will set in layout which hight and width you will set as you want like 400*400. 
If any double catch me.. 

最佳 V.k