Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以允许用户在 android 应用程序中缩放 textview 的内容。
现在我创建了一个应用程序,用户无法放大或缩小
不。文本是静态的。如果要缩放它,则必须使用 GestureListener 并以编程方式更改文本大小。
您可以使用sp而不是dp作为字体大小单位,以便文本根据设备设置进行缩放。
sp
dp
我有时会出现在我看来很长的网址,例如:
"https://www.google.de/#hl=de&sclient=psy-ab&q=break+long+url+css&oq=break+long+url+&gs_l=serp.1.1.0i30l4.3822.3822.0.5634.1.1.0.0.0.0.85.85.1.1.0.