Esempio n. 1
0
 /**
  * Specifies the textbox's text color as an alpha-red-green-blue integer.
  *
  * @param argb text RGB color with alpha
  */
 public void TextColor(int argb) {
   textColor = argb;
   if (argb != Component.COLOR_DEFAULT) {
     TextViewUtil.setTextColor(view, argb);
   } else {
     TextViewUtil.setTextColor(view, Component.COLOR_BLACK);
   }
 }
Esempio n. 2
0
 /**
  * Specifies the checkbox's text color as an alpha-red-green-blue integer.
  *
  * @param argb text RGB color with alpha
  */
 public void TextColor(int argb) {
   textColor = argb;
   if (argb != Component.COLOR_DEFAULT) {
     if (resourceId != -1) {
       TextViewUtil.setTextColor(
           (android.widget.CheckBox) container.$context().findViewById(resourceId), argb);
     } else {
       TextViewUtil.setTextColor(view, argb);
     }
   } else {
     if (resourceId != -1) {
       TextViewUtil.setTextColor(
           (android.widget.CheckBox) container.$context().findViewById(resourceId),
           Component.COLOR_BLACK);
     } else {
       TextViewUtil.setTextColor(view, Component.COLOR_BLACK);
     }
   }
 }