English 中文(简体)
根据布局大小调整文本大小
原标题:Adapt text size depending on the size of the layout

我有 4 个文本视图 位置, 横向填充屏幕的所有宽度, 每个文本视图都以相同的水平宽度 。 取决于设备屏幕的宽度大小, 总宽度是偏差的 。 我想更改文本大小, 以横向填充每个文本视图, 但以文本适合的方式 。 是否有办法这样做? Thx

最佳回答

我认为此链接可以帮助您非常相似, 因为它非常相似 。 您可能需要使用基于屏幕宽度的 SET 静态宽度, 然后继续调整字体大小, 直到每个文本视图的垂直方向适合 。

< a href=" "https://stackoverflow.com/ questions/4794484/calculaulate-text-size- dip- to-width- of-text-reaty" > 根据文本区域的宽度来计算文本大小

问题回答

暂无回答




相关问题
Very basic WPF layout question

How do I get this listbox to be maxiumum size, i.e. fill the group box its in. I ve tried width="auto" Height="auto", width="stretch" Height="stretch" annoyingly at the moment, it dynamicly sizes to ...

How to align the text to top of TextView?

How to align the text to top of a TextView? Equivalent Android API for Swings setInsets()? that is top of text should start be in (0,0) of TextView <?xml version="1.0" encoding="utf-8"?> <...

Centring a flow in Shoes

Can I center the contents of a flow in Shoes? I know that a paragraph can be centred like: para Centred paragrpah , :align=> center However, this does not work with flows: flow(:align=> ...

Overlaying with CSS

I want to load a website in an iframe, and overlay the website with some hints about the website that is shown. However, i got stuck at the point that the website has a variable passive white space at ...

How do you normally make a program look beautiful? [closed]

How can I make an Application look nice and not like an amateur pulled it together? I mean graphic-wise. Is there some sort of book you can read regarding beautiful program layouts, etc? I put this ...

热门标签