Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
474 views
in Technique[技术] by (71.8m points)

android - 调整TextView的视图范围到其内容的大小(Sizing view bounds of TextView to size of its content)

I'm trying to make the view bounds of a TextView fit exactly to the size of the text within.

(我正在尝试使TextView的视图范围完全适合其中的文本大小。)

I have fiddled around with it, trying to make a custom TextView to solve it, but couldn't get a solid solution.

(我摆弄了它,试图制作一个自定义的TextView来解决它,但是无法得到一个可靠的解决方案。)

Here are some resources that were useful but didn't quite do the trick for me:

(以下是一些有用的资源,但对我而言并不足够:)

Is there a solid, reusable solution to this?

(是否有一个可靠的,可重用的解决方案?)

Thank you!

(谢谢!)

  ask by Jan translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...