diff --git a/android/sdk/src/main/java/org/apache/weex/ui/component/AbstractEditComponent.java b/android/sdk/src/main/java/org/apache/weex/ui/component/AbstractEditComponent.java index e7de9042bb..bdc6a17ed7 100644 --- a/android/sdk/src/main/java/org/apache/weex/ui/component/AbstractEditComponent.java +++ b/android/sdk/src/main/java/org/apache/weex/ui/component/AbstractEditComponent.java @@ -166,8 +166,13 @@ protected void updateStyleAndAttrs() { } int lineHeight = WXStyle.getLineHeight(getStyles(),getViewPortWidth()); - if (lineHeight != UNSET) + if (lineHeight != UNSET){ mLineHeight = lineHeight; + int fontHeight = mPaint.getFontMetricsInt(null); + if (mLineHeight != fontHeight) { + getHostView().setLineSpacing(lineHeight - fontHeight, 1f); + } + } if (fontSize != UNSET) mPaint.setTextSize(fontSize);