0
で特定のテキストを表示し、これは元の文字列のは、たとえば、TextViewのシングルライン
Googleの
のAndroid
ある Gmailの
YouTubeの
アップル
のiOS TextView
で
<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" />
、私がandroid:maxLines="1"
を使用すると、最初の行、つまりGoogleのみが使用されます見えるようにする。 TextView
に他のテキストを表示することはできますか?たとえば、元の文字列を変更せずに最初の行にYoutubeを表示しますか?