From c20f1c53bf875bdf84b09a26e9447933705b3e07 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 1 Apr 2020 17:57:38 +0800 Subject: [PATCH] android:text setIncludeFontPadding to false --- doric-android/doric/src/main/java/pub/doric/shader/TextNode.java | 1 + 1 file changed, 1 insertion(+) diff --git a/doric-android/doric/src/main/java/pub/doric/shader/TextNode.java b/doric-android/doric/src/main/java/pub/doric/shader/TextNode.java index d45cb1f3..79875008 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/TextNode.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/TextNode.java @@ -44,6 +44,7 @@ public class TextNode extends ViewNode { tv.setGravity(Gravity.CENTER); tv.setMaxLines(1); tv.setEllipsize(TextUtils.TruncateAt.END); + tv.setIncludeFontPadding(false); return tv; }