Add TextView textSize as a ViewDebug for hierarchyviewer

Change-Id: I6459d0d9cdb9fe6a81b3e30c56b64159fc729d52
This commit is contained in:
Fabrice Di Meglio
2012-04-27 16:16:35 -07:00
parent a75fbc3c76
commit c54da1cef9

View File

@@ -2148,6 +2148,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
/**
* @return the size (in pixels) of the default text size in this TextView.
*/
@ViewDebug.ExportedProperty(category = "text")
public float getTextSize() {
return mTextPaint.getTextSize();
}