Home
last modified time | relevance | path

Searched refs:inset (Results 1 – 2 of 2) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DRegions.java85 float inset = p.getStrokeWidth() * 0.5f; in drawCentered() local
86 if (inset == 0) { // catch hairlines in drawCentered()
87 inset = 0.5f; in drawCentered()
89 c.drawRect(r.left + inset, r.top + inset, in drawCentered()
90 r.right - inset, r.bottom - inset, p); in drawCentered()
DShapeDrawable1.java82 RectF inset = new RectF(6, 6, 6, 6); in SampleView() local
97 mDrawables[3] = new ShapeDrawable(new RoundRectShape(outerR, inset, in SampleView()
99 mDrawables[4] = new ShapeDrawable(new RoundRectShape(outerR, inset, in SampleView()