假设我们有一个大字符串和许多文本视图,它们都有maxLines="1"和layout_width="match_parent"等宽字体。
maxLines="1"
layout_width="match_parent"
Textview我需要知道在需要换行之前可以在字符串中放入多少个字符。
Textview
如果该解决方案也可以使用,那就太好了EditText。
EditText
android textview android-layout android-edittext
android ×1
android-edittext ×1
android-layout ×1
textview ×1