Когда я пытаюсь отобразить текст с расширениями файла в TextView, он неправильно переносится.Текст каждый раз переносится по последнему слову перед первым расширением файла с точкой в начале.
Пример кода:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="@dimen/margin_regular">
<TextView
android:id="@+id/attachFileConditions"
android:layout_width="300dp"
android:background="#cccccc"
android:layout_height="wrap_content"
android:text="Some file extensions: .docx, .jpg, .pdf, .png, .xls, .xlsx, .xlsx, .xlsx, .xlsx, .xlsx, .xlsx, .xlsx, .xlsx, .xlsx, .xlsx, .xlsx, .xlsx, .xlsx" />
</LinearLayout>
Результат выглядит следующим образом:Ожидаемый результат