Code example for Rect

Methods: centerX

0
	 
	/** 
	 * Shows the quick actions window 
	 */ 
	public void show() { 
		show(mAnchor.centerX());
	} 
 
	@Override 
	public boolean onKeyUp(int keyCode, KeyEvent event) {
		//if the back key is presses, the window is dismissed 
		if (keyCode == KeyEvent.KEYCODE_BACK) {
			dismiss();
			return true; 
		} 
 
		return false; 
	} 
	 
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub