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在第一行而不修改原始字符串?