开发者

Android text shadow units

Android text shadows have shadowDx and shadowDy to specify the shadow's offset. These are floats and are a factor rather than absolute units. The answer given here implies that there's no easy way of specifying the shadow's position in pixels or dips: T开发者_如何学PythonextView:shadowDx/Dy/Radius in dip?

So... what do the units mean? If I give a shadowDx of 1.5, that's 1.5 what? 1.5 times the text size?


OK, I guess the units are physical pixels. The fact that the documentation doesn't state what the units are (it just says "Must be a floating point value"), and that you don't get to choose which units (pixels or dip), was confusing me.


Actually, I think the unit is pd, not pixels.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜