(int rad, int defaultColor)
| 293 | } |
| 294 | |
| 295 | public static Drawable createRoundRectDrawable(int rad, int defaultColor) { |
| 296 | ShapeDrawable defaultDrawable = new ShapeDrawable(new RoundRectShape(new float[]{rad, rad, rad, rad, rad, rad, rad, rad}, null, null)); |
| 297 | defaultDrawable.getPaint().setColor(defaultColor); |
| 298 | return defaultDrawable; |
| 299 | } |
| 300 | |
| 301 | public static Drawable createSimpleSelectorRoundRectDrawable(int rad, int defaultColor, int pressedColor) { |
| 302 | return createSimpleSelectorRoundRectDrawable(rad, defaultColor, pressedColor, pressedColor); |
no outgoing calls
no test coverage detected