public static class StyleSheet.BoxPainter extends Object implements Serializable
作为Views的代理,此对象负责View的插入,并确保根据CSS属性维护背景。
public float getInset(int side, View v)
side
- 获取插图的框的大小。
这可以是View.TOP,View.LEFT,View.BOTTOM或View.RIGHT。
v
- 提出请求的视图。
这用于获取AttributeSet,可用于解析百分比参数。
IllegalArgumentException
- 无效方向
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.