Code example for ColorMatrixColorFilter

Methods: setColorFilter

0
	public final static OnFocusChangeListener buttonOnFocusChangeListener = new OnFocusChangeListener() {
 
		@Override 
		public void onFocusChange(View v, boolean hasFocus) { 
			if (hasFocus) { 
				v.getBackground().setColorFilter( 
						new ColorMatrixColorFilter(BT_SELECTED)); 
				v.setBackgroundDrawable(v.getBackground()); 
			} else { 
				v.getBackground().setColorFilter( 
						new ColorMatrixColorFilter(BT_NOT_SELECTED)); 
				v.setBackgroundDrawable(v.getBackground()); 
			} 
		} 
 
	}; 
 
	/** 
	 * ��ť��������Ч�� 
	 */ 
	public final static OnTouchListener buttonOnTouchListener = new OnTouchListener() {