Атрибут строк TextView плохо работает для корейского языка - PullRequest
0 голосов
/ 14 апреля 2020

У меня есть TextView.

Код:

<!-- KOREAN -->
<LinearLayout
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:orientation="horizontal">

  <TextView
    android:layout_width="100dp"
    android:layout_height="wrap_content"
    android:background="@color/accent"
    android:lines="2"
    android:text="두줄두줄두줄두줄두줄두줄두줄두줄두줄두줄두줄두줄" />

  <TextView
    android:layout_width="100dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="2dp"
    android:background="@color/accent"
    android:lines="2"
    android:text="한줄한줄한줄" />
</LinearLayout>

<!-- ENGLISH -->
<LinearLayout
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layout_marginTop="2dp"
  android:orientation="horizontal">

  <TextView
    android:layout_width="100dp"
    android:layout_height="wrap_content"
    android:background="@color/accent"
    android:lines="2"
    android:text="twolinestwolinestwolinestwolinestwolines" />

  <TextView
    android:layout_width="100dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="2dp"
    android:background="@color/accent"
    android:lines="2"
    android:text="oneline" />
</LinearLayout>

Результат:

enter image description here

Корейский язык TextView имеет странную высоту. Все Textview имеют одинаковые атрибуты. Как вы видите в верхнем правом углу TextView, когда TextView имеет текст в одну строку, высота просмотра уменьшается по сравнению с другими. Есть ли какое-либо решение для фиксации высоты линий?

...