Code example for View

Methods: setOnClickListener

0
	    	/*if (mHandle == null) { 
	    		String name = getResources().getResourceEntryName(mHandleId); 
	    		throw new RuntimeException("Your DockBar must have a child View whose id attribute is 'R.id." + name + "'"); 
	    	}*/ 
    		if(mHandle!=null)
    			mHandle.setOnClickListener(this);
    	} 
    	setVisibility(VISIBLE);
    } 
	@Override 
	protected void onLayout(boolean changed, int l, int t, int r, int b) {
		// TODO Auto-generated method stub 
		super.onLayout(changed, l, t, r, b);
		if(mFirstLayout){
			setVisibility(GONE);
			mFirstLayout=false;
		} 
	} 
	public void open(){ 
		dispatchDockBarEvent(true);