Tôi đang sử dụng sau TextView
để hiển thị một số dữ liệu trong đó:Làm cách nào để đưa văn bản vào dòng tiếp theo trong Android TextView?
<TextView android:id="@+id/notificationText"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:textSize="18sp"
android:inputType="textMultiLine"
android:maxLines="2"
android:layout_paddingRight="20dip"
android:textColor="#ffffff"/>
Tôi muốn quấn văn bản để dòng tiếp theo. Tôi có thể làm cái này như thế nào?
có thể thực hiện điều này trong thời gian chạy không? – Ewoks
@Ewoks kiểm tra [setHorizontallyScrolling] (http://developer.android.com/reference/android/widget/TextView.html#setHorizontallyScrolling (boolean)) –
văn bản bị cắt thay vì chuyển sang dòng tiếp theo –