Esempio n. 1
0
 /**
  * Specifies the textbox'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) {
     TextViewUtil.setBackgroundColor(view, argb);
   } else {
     ViewUtil.setBackgroundDrawable(view, defaultTextBoxDrawable);
   }
 }
Esempio n. 2
0
 /**
  * Specifies the checkbox'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.CheckBox) container.$context().findViewById(resourceId), argb);
     } else {
       TextViewUtil.setBackgroundColor(view, argb);
     }
   } else {
     if (resourceId != -1) {
       TextViewUtil.setBackgroundColor(
           (android.widget.CheckBox) container.$context().findViewById(resourceId),
           Component.COLOR_NONE);
     } else {
       TextViewUtil.setBackgroundColor(view, Component.COLOR_NONE);
     }
   }
 }