I want to adjust the line spacing of edittext. I use a long line, and when I cross the line, linespacing is applied. However, linespacing does not apply when I input Enter key.
This Library fixed the EditText linespacing issue https://github.com/hanks-zyh/LineHeightEditText
use this code for line space between two line
android:lineSpacingExtra="10dp"
whole code is
<EditText
android:id="@+id/edittext"
android:layout_margin="@dimen/activity_horizontal_margin"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:lineSpacingExtra="10dp" //set the line space between 2 lines
android:text="iadhadhsfbsfffbdgfddgdfdjkfhdjfhdkfhdfhdfhdkfhdkjhfkdhfdkhfdkfhdhfdkfhdkhfdjkfhdfhd"/>
来源:https://stackoverflow.com/questions/42687621/i-can-not-adjust-the-edittext-linespacing