【发布时间】:2015-09-15 05:24:35
【问题描述】:
我有一个ShapeDrawable:
final ShapeDrawable drawable = new ShapeDrawable(shape);
drawable.getPaint().setStyle(Paint.Style.FILL);
drawable.getPaint().setColor(0xFFffffff);
我想为这个drawable设置边框(描边)颜色和宽度。
我试试setStyle(Paint.Style.FILL_AND_STROKE)
但它设置了相同颜色的背景和边框
【问题讨论】:
-
你找到办法了吗?
标签: android drawable paint android-drawable