如何设置每行最多字符在android系统文本视图 [英] How to set maximum characters per line for text view in android

查看:85
本文介绍了如何设置每行最多字符在android系统文本视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HIII所有,
这可能是一个可能的重复,但我的疑难问题需要限制每行的字符数上的TextView显示,当我找不到解决办法,并显示在未来line.I剩余的字符不能设置EMS的价值,我也尝试设置maxlength属性的XML,但它没有显示剩余字符,任何一个可以告诉我,我该怎么办了。

Hiii all, this may be a possible duplicate but I couldn't find solution for my problem.I need to limit the number of characters per line when displaying on the textview and display the remaining characters in the next line.I cannot set ems value and I also tried setting maxLength attribute in xml but it is not displaying the remaining characters,Can any one tell me how can I do it.

推荐答案

使用

android:maxWidth="size"

替换大小与您preFER大小。例如, 100dip

这篇关于如何设置每行最多字符在android系统文本视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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