コード例 #1
0
ファイル: TextBoxBase.java プロジェクト: ryanbis/AltBridge
 /**
  * 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);
   }
 }
コード例 #2
0
ファイル: CheckBox.java プロジェクト: ryanbis/AltBridge-bad
 /**
  * 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);
     }
   }
 }