summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Deepanshu Gupta <deepanshu@google.com> 2014-04-18 15:43:06 -0700
committer Deepanshu Gupta <deepanshu@google.com> 2014-04-18 15:43:06 -0700
commit08ea918c86175d313c8e7f10c0b4a25c1424639b (patch)
tree648e3fc416396c4861e580ea0cddc386ed451ab5
parentc726f6b537c5913600bc35ff866f1fb32800b9be (diff)
Add isElegantHeight to Layoutlib
Add the native stub methods for isElegantHeight in Paint. Change-Id: Iaddde36528fb452e5a150ab35687da781091d14c
-rw-r--r--tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java
index de2e5922f0bf..25eaaf596880 100644
--- a/tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java
+++ b/tools/layoutlib/bridge/src/android/graphics/Paint_Delegate.java
@@ -428,6 +428,16 @@ public class Paint_Delegate {
}
@LayoutlibDelegate
+ /*package*/ static boolean isElegantTextHeight(Paint thisPaint) {
+ return false;
+ }
+
+ @LayoutlibDelegate
+ /*package*/ static void setElegantTextHeight(Paint thisPaint, boolean elegant) {
+ // TODO
+ }
+
+ @LayoutlibDelegate
/*package*/ static float getTextSize(Paint thisPaint) {
// get the delegate from the native int.
Paint_Delegate delegate = sManager.getDelegate(thisPaint.mNativePaint);