Code example for ClipDrawable

Methods: getLevelsetLevel

0
		final Timer timer = new Timer();
		final Handler mh = new Handler(){ 
			public void handleMessage(Message msg){ 
				 
				if(msg.what == 0x1233){ 
					System.out.println(drawable.getLevel()); 
					drawable.setLevel(drawable.getLevel() + 200); 
				} 
			} 
		}; 
		System.out.println(mh.hasMessages(0x1233));
		 
		timer.schedule(new TimerTask(){
			public void run(){ 
				Message msg = Message.obtain(mh);
				msg.what = 0x1233;
				msg.sendToTarget();
				   
				if(drawable.getLevel() >= 10000){
					timer.cancel();
				}