0
例如,这是原始字符串s显示某些文本
谷歌
的Android
的Gmail
的Youtube
苹果
的iOS
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:maxLines="1"
android:textSize="16sp" />
在TextView
,当我使用android:maxLines="1"
时,只有第一行,即Google会可见。是否有可能使TextView
显示其他文本,例如Youtube在第一行而不修改原始字符串?