Code example for AnimationDrawable

Methods: setOneShot

0
   * Specifies the button's background color as an alpha-red-green-blue 
   * integer. 
   * 
   * @param argb  background RGB color with alpha 
   */ 
   
  public void BackgroundColor(int argb) {
    backgroundColor = argb;
    if (argb != Component.COLOR_DEFAULT) {
    	if (resourceId!= -1) { 
    		TextViewUtil.setBackgroundColor((android.widget.Button) container.$form().findViewById(resourceId), argb);
    	} else { 
    		TextViewUtil.setBackgroundColor(view, argb);
    	} 
    } else { 
    	if (resourceId!= -1) { 
    		ViewUtil.setBackgroundDrawable((android.widget.Button) container.$form().findViewById(resourceId), defaultButtonDrawable);
    	} else { 
    		ViewUtil.setBackgroundDrawable(view, defaultButtonDrawable);
    	} 
    }