Guest User

Untitled

a guest
Jan 8th, 2012
257
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public class SomeView extends View{
  2.         public SomeView(Context context) {
  3.             super(context);
  4.             // TODO Auto-generated constructor stub
  5.         }
  6.  
  7.         // TODO: Дополнительный код: конструкторы и тд.
  8.  
  9.         @Override
  10.         protected void onDraw(Canvas canvas) {
  11.             super.onDraw(canvas);
  12.  
  13.             Bitmap bitmap = Bitmap.createBitmap(canvas.getWidth(), canvas.getHeight(), Config.ARGB_8888);
  14.             Canvas over = new Canvas(bitmap);
  15.  
  16.             // TODO: рисовать на over
  17.  
  18.             over.drawBitmap(bitmap, 0, 0, null);
  19.             view1.draw(over);
  20.            
  21.         }
  22.     }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×