Увеличивайте высоту TextView снизу вверх, когда текст переходит на новую строку - PullRequest
0 голосов
/ 13 июля 2020

Обычно высота TextView увеличивается до самого низа всякий раз, когда текст переходит на новую строку. Но я хочу TextView увеличение высоты до самого верха.

Обычно это происходит, когда размер текста увеличивается и переходит на новую строку

Normally this is what happen when text size increases and goes to the new line

And this is what I need when text size increases and goes to the new line

enter image description here

Note: Height of Textview is set to WRAP_CONTENT

Layout

  

Стиль:

<style name="TvChatMessage.Sent">
    <item name="android:fontFamily">@font/work_sans_regular</item>
    <item name="android:lineSpacingExtra">@dimen/dimen_3dp</item>
    <item name="android:paddingStart">@dimen/dimen_10dp</item>
    <item name="android:paddingEnd">@dimen/dimen_10dp</item>
    <item name="android:textSize">@dimen/txt_body_large</item>
    <item name="android:paddingTop">@dimen/dimen_3dp</item>
    <item name="android:textColor">@color/colorWhite</item>
</style>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...