Searched refs:mDrawable (Results 1 – 5 of 5) sorted by relevance
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | RoundRects.java | 37 private GradientDrawable mDrawable; field in RoundRects.SampleView 47 mDrawable = new GradientDrawable(GradientDrawable.Orientation.TL_BR, in SampleView() 50 mDrawable.setShape(GradientDrawable.RECTANGLE); in SampleView() 51 mDrawable.setGradientRadius((float)(Math.sqrt(2) * 60)); in SampleView() 62 mDrawable.setBounds(mRect); in onDraw() 68 mDrawable.setGradientType(GradientDrawable.LINEAR_GRADIENT); in onDraw() 69 setCornerRadii(mDrawable, r, r, 0, 0); in onDraw() 70 mDrawable.draw(canvas); in onDraw() 75 mDrawable.setGradientType(GradientDrawable.RADIAL_GRADIENT); in onDraw() 76 setCornerRadii(mDrawable, 0, 0, r, r); in onDraw() [all …]
|
D | ColorFilters.java | 39 private Drawable mDrawable; field in ColorFilters.SampleView 64 mDrawable = context.getResources().getDrawable(R.drawable.btn_default_normal); in SampleView() 65 mDrawable.setBounds(0, 0, 150, 48); in SampleView() 66 mDrawable.setDither(true); in SampleView() 74 Drawable prev = mDrawable; in SampleView() 128 Rect r = mDrawable.getBounds(); in drawSample() 132 mDrawable.setColorFilter(filter); in drawSample() 133 mDrawable.draw(canvas); in drawSample()
|
D | Pictures.java | 38 private Drawable mDrawable; field in Pictures.SampleView 60 mDrawable = new PictureDrawable(mPicture); in SampleView() 70 mDrawable.setBounds(0, 200, getWidth(), 300); in onDraw() 71 mDrawable.draw(canvas); in onDraw()
|
D | AnimateDrawables.java | 39 private AnimateDrawable mDrawable; field in AnimateDrawables.SampleView 54 mDrawable = new AnimateDrawable(dr, an); in SampleView() 62 mDrawable.draw(canvas); in onDraw()
|
D | BitmapDecode.java | 43 private Drawable mDrawable; field in BitmapDecode.SampleView 100 mDrawable = context.getResources().getDrawable(R.drawable.button); in SampleView() 101 mDrawable.setBounds(150, 20, 300, 100); in SampleView() 125 mDrawable.draw(canvas); in onDraw()
|