Android 開發:Viewtext(1)換行,換顏色

<TextView
        android:id="@+id/textView"
        android:layout_width="0dp"
        android:layout_height="93dp"
        android:layout_gravity="bottom"
        android:layout_weight="10"
        android:singleLine="false"
        android:text="知乎\n發現更大的世界"
        android:textColor="@color/colorPrimaryDark"
        android:textSize="30sp" />
</LinearLayout>

1.如圖,目前問題是這個樣子的,我想做成圖二,官方的樣子,可是圖一還不了行。

問:怎麼換行,在同一個view text裏,並且顏色不一樣

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章