Android Open Source - android-virtual-layout Props






From Project

Back to project page android-virtual-layout.

License

The source code is released under:

MIT License

If you think the Android project android-virtual-layout listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

// This file is generated by 'gradle generateProps'
package trikita.anvil.v10;
/*from  w  ww  .  j a  va2 s.co m*/
import android.graphics.Typeface;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TableRow;

import java.util.ArrayList;
import java.util.List;

import static trikita.anvil.Render.*;

public class Props {
  //
  // Syntax sugar
  //
  
  // weight constants
  public final static int FILL = ViewGroup.LayoutParams.FILL_PARENT;
  public final static int MATCH = ViewGroup.LayoutParams.MATCH_PARENT;
  public final static int WRAP = ViewGroup.LayoutParams.WRAP_CONTENT;

  // gravity constants
  public final static int TOP = 0x30;
  public final static int BOTTOM = 0x50;
  public final static int LEFT = 0x03;
  public final static int RIGHT = 0x05;
  public final static int CENTER_VERTICAL = 0x10;
  public final static int GROW_VERTICAL = 0x70;
  public final static int CENTER_HORIZONTAL = 0x01;
  public final static int GROW_HORIZONTAL = 0x07;
  public final static int CENTER = CENTER_VERTICAL|CENTER_HORIZONTAL;
  public final static int GROW = GROW_VERTICAL|GROW_HORIZONTAL;
  public final static int CLIP_VERTICAL = 0x80;
  public final static int CLIP_HORIZONTAL = 0x08;
  public final static int START = 0x00800003;
  public final static int END = 0x00800005;

  public static class LayoutNode implements AttrNode {
    int width;
    int height;
    float weight;
    int gravity;
    int column;
    int span;
    int[] margin = new int[4];
    
    public LayoutNode(int width, int height) {
      this.width = width;
      this.height = height;
    }

    public LayoutNode weight(float w) {
      this.weight = w;
      return this;
    }

    public LayoutNode margin(int m) {
      return margin(m, m, m, m);
    }

    public LayoutNode margin(int horizontal, int vertical) {
      return margin(horizontal, vertical, horizontal, vertical);
    }

    public LayoutNode margin(int l, int t, int r, int b) {
      this.margin[0] = l;
      this.margin[1] = t;
      this.margin[2] = r;
      this.margin[3] = b;
      return this;
    }

    public LayoutNode gravity(int g) {
      this.gravity = g;
      return this;
    }

    public LayoutNode column(int column) {
      this.column = column;
      return this;
    }

    public LayoutNode span(int span) {
      this.span = span;
      return this;
    }

    public void apply(View v) {
      ViewGroup.LayoutParams p = v.getLayoutParams();
      p.width = width;
      p.height = height;
      if (p instanceof ViewGroup.MarginLayoutParams) {
        ((ViewGroup.MarginLayoutParams) p).leftMargin = this.margin[0];
        ((ViewGroup.MarginLayoutParams) p).topMargin = this.margin[1];
        ((ViewGroup.MarginLayoutParams) p).rightMargin = this.margin[2];
        ((ViewGroup.MarginLayoutParams) p).bottomMargin = this.margin[3];
      }
      if (p instanceof LinearLayout.LayoutParams) {
        ((LinearLayout.LayoutParams) p).weight = this.weight;
        ((LinearLayout.LayoutParams) p).gravity = this.gravity;
      }
      if (p instanceof FrameLayout.LayoutParams) {
        ((FrameLayout.LayoutParams) p).gravity = this.gravity;
      }
      if (p instanceof TableRow.LayoutParams) {
        ((TableRow.LayoutParams) p).column = this.column;
        ((TableRow.LayoutParams) p).span = this.span;
      }
      v.setLayoutParams(p);
    }

    public int hashCode() {
      return this.width + this.height + Float.floatToIntBits(this.weight) +
        this.gravity + this.column + this.span +
        this.margin[0] + this.margin[1] + this.margin[2] + this.margin[3];
    }

    public boolean equals(Object obj) {
      if (getClass() == obj.getClass()) {
        LayoutNode n = (LayoutNode) obj;
        return this.width == n.width && this.height == n.height &&
          this.weight == n.weight && this.gravity == n.gravity &&
          this.column == n.column && this.span == n.span &&
          this.margin[0] == n.margin[0] && this.margin[1] == n.margin[1] &&
          this.margin[2] == n.margin[2] && this.margin[3] == n.margin[3];
      }
      return false;
    }
  }

  public static LayoutNode size(int w, int h) {
    return new LayoutNode(w, h);
  }

  public static AttrNode padding(int p) {
    return padding(p, p, p, p);
  }

  public static AttrNode padding(int horizontal, int vertical) {
    return padding(horizontal, vertical, horizontal, vertical);
  }

  public static AttrNode padding(final int left, final int top, final int right, final int bottom) {
    final List<Integer> params = new ArrayList<Integer>() {{
      add(top); add(right); add(bottom); add(left);
    }};
    return new SimpleAttrNode(params) {
      public void apply(View v) {
        v.setPadding(params.get(0), params.get(1), params.get(2), params.get(3));
      }
    };
  }

  public static AttrNode typeface(final String font) {
    return new SimpleAttrNode(font) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v)
            .setTypeface(Typeface.createFromAsset(v.getContext().getAssets(), font));
        }
      }
    };
  }

  //
  // Generated bindings
  //
  public static AttrNode adapter(final android.widget.ListAdapter arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setAdapter(arg);
        }
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setAdapter(arg);
        }
        if (v instanceof android.widget.GridView) {
          ((android.widget.GridView) v).setAdapter(arg);
        }
        // Here setAdapter expects <? extends ListAdapter,Filterable>
        // if (v instanceof android.widget.AutoCompleteTextView)
        //   if (arg instanceof android.widget.ListAdapter && arg instanceof android.widget.Filterable)
        //     ???
      }
    };
  }
  public static AttrNode adapter(final android.widget.ExpandableListAdapter arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setAdapter(arg);
        }
      }
    };
  }
  public static AttrNode adapter(final android.widget.Adapter arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AdapterView) {
          ((android.widget.AdapterView) v).setAdapter(arg);
        }
      }
    };
  }
  public static AttrNode adapter(final android.widget.SpinnerAdapter arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsSpinner) {
          ((android.widget.AbsSpinner) v).setAdapter(arg);
        }
      }
    };
  }
  public static AttrNode addStatesFromChildren(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setAddStatesFromChildren(arg);
        }
      }
    };
  }
  public static AttrNode adjustViewBounds(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setAdjustViewBounds(arg);
        }
      }
    };
  }
  public static AttrNode alpha(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setAlpha(arg);
        }
      }
    };
  }
  public static AttrNode alwaysDrawnWithCacheEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setAlwaysDrawnWithCacheEnabled(arg);
        }
      }
    };
  }
  public static AttrNode anchorView(final android.view.View arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.MediaController) {
          ((android.widget.MediaController) v).setAnchorView(arg);
        }
      }
    };
  }
  public static AttrNode animateFirstView(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ViewAnimator) {
          ((android.widget.ViewAnimator) v).setAnimateFirstView(arg);
        }
      }
    };
  }
  public static AttrNode animation(final android.view.animation.Animation arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setAnimation(arg);
        }
      }
    };
  }
  public static AttrNode animationCacheEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setAnimationCacheEnabled(arg);
        }
      }
    };
  }
  public static AttrNode animationDuration(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Gallery) {
          ((android.widget.Gallery) v).setAnimationDuration(arg);
        }
      }
    };
  }
  public static AttrNode autoLinkMask(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setAutoLinkMask(arg);
        }
      }
    };
  }
  public static AttrNode autoStart(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ViewFlipper) {
          ((android.widget.ViewFlipper) v).setAutoStart(arg);
        }
      }
    };
  }
  public static AttrNode backgroundColor(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setBackgroundColor(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setBackgroundColor(arg);
        }
      }
    };
  }
  public static AttrNode backgroundDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ToggleButton) {
          ((android.widget.ToggleButton) v).setBackgroundDrawable(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setBackgroundDrawable(arg);
        }
      }
    };
  }
  public static AttrNode backgroundResource(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setBackgroundResource(arg);
        }
      }
    };
  }
  public static AttrNode base(final long arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Chronometer) {
          ((android.widget.Chronometer) v).setBase(arg);
        }
      }
    };
  }
  public static AttrNode baselineAligned(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.LinearLayout) {
          ((android.widget.LinearLayout) v).setBaselineAligned(arg);
        }
      }
    };
  }
  public static AttrNode baselineAlignedChildIndex(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.LinearLayout) {
          ((android.widget.LinearLayout) v).setBaselineAlignedChildIndex(arg);
        }
      }
    };
  }
  public static AttrNode buttonDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.CompoundButton) {
          ((android.widget.CompoundButton) v).setButtonDrawable(arg);
        }
      }
    };
  }
  public static AttrNode buttonDrawable(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.CompoundButton) {
          ((android.widget.CompoundButton) v).setButtonDrawable(arg);
        }
      }
    };
  }
  public static AttrNode cacheColorHint(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setCacheColorHint(arg);
        }
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setCacheColorHint(arg);
        }
      }
    };
  }
  public static AttrNode callbackDuringFling(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Gallery) {
          ((android.widget.Gallery) v).setCallbackDuringFling(arg);
        }
      }
    };
  }
  public static AttrNode certificate(final android.net.http.SslCertificate arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setCertificate(arg);
        }
      }
    };
  }
  public static AttrNode checkMarkDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.CheckedTextView) {
          ((android.widget.CheckedTextView) v).setCheckMarkDrawable(arg);
        }
      }
    };
  }
  public static AttrNode checkMarkDrawable(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.CheckedTextView) {
          ((android.widget.CheckedTextView) v).setCheckMarkDrawable(arg);
        }
      }
    };
  }
  public static AttrNode checked(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.CheckedTextView) {
          ((android.widget.CheckedTextView) v).setChecked(arg);
        }
        if (v instanceof android.widget.CompoundButton) {
          ((android.widget.CompoundButton) v).setChecked(arg);
        }
        if (v instanceof android.widget.ToggleButton) {
          ((android.widget.ToggleButton) v).setChecked(arg);
        }
      }
    };
  }
  public static AttrNode childDivider(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setChildDivider(arg);
        }
      }
    };
  }
  public static AttrNode childIndicator(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setChildIndicator(arg);
        }
      }
    };
  }
  public static AttrNode choiceMode(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setChoiceMode(arg);
        }
      }
    };
  }
  public static AttrNode clickable(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setClickable(arg);
        }
      }
    };
  }
  public static AttrNode clipChildren(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setClipChildren(arg);
        }
      }
    };
  }
  public static AttrNode clipToPadding(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setClipToPadding(arg);
        }
      }
    };
  }
  public static AttrNode colorFilter(final android.graphics.ColorFilter arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setColorFilter(arg);
        }
      }
    };
  }
  public static AttrNode colorFilter(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setColorFilter(arg);
        }
      }
    };
  }
  public static AttrNode columnWidth(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.GridView) {
          ((android.widget.GridView) v).setColumnWidth(arg);
        }
      }
    };
  }
  public static AttrNode completionHint(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setCompletionHint(arg);
        }
      }
    };
  }
  public static AttrNode compoundDrawablePadding(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setCompoundDrawablePadding(arg);
        }
      }
    };
  }
  public static AttrNode contentDescription(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setContentDescription(arg);
        }
      }
    };
  }
  public static AttrNode currentHour(final java.lang.Integer arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TimePicker) {
          ((android.widget.TimePicker) v).setCurrentHour(arg);
        }
      }
    };
  }
  public static AttrNode currentMinute(final java.lang.Integer arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TimePicker) {
          ((android.widget.TimePicker) v).setCurrentMinute(arg);
        }
      }
    };
  }
  public static AttrNode currentTab(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabHost) {
          ((android.widget.TabHost) v).setCurrentTab(arg);
        }
        if (v instanceof android.widget.TabWidget) {
          ((android.widget.TabWidget) v).setCurrentTab(arg);
        }
      }
    };
  }
  public static AttrNode currentTabByTag(final java.lang.String arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabHost) {
          ((android.widget.TabHost) v).setCurrentTabByTag(arg);
        }
      }
    };
  }
  public static AttrNode currentText(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextSwitcher) {
          ((android.widget.TextSwitcher) v).setCurrentText(arg);
        }
      }
    };
  }
  public static AttrNode cursorVisible(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setCursorVisible(arg);
        }
      }
    };
  }
  public static AttrNode debugFlags(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.opengl.GLSurfaceView) {
          ((android.opengl.GLSurfaceView) v).setDebugFlags(arg);
        }
      }
    };
  }
  public static AttrNode descendantFocusability(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setDescendantFocusability(arg);
        }
      }
    };
  }
  public static AttrNode digitsWatcher(final android.text.TextWatcher arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.DialerFilter) {
          ((android.widget.DialerFilter) v).setDigitsWatcher(arg);
        }
      }
    };
  }
  public static AttrNode displayedChild(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ViewAnimator) {
          ((android.widget.ViewAnimator) v).setDisplayedChild(arg);
        }
      }
    };
  }
  public static AttrNode divider(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setDivider(arg);
        }
      }
    };
  }
  public static AttrNode dividerDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabWidget) {
          ((android.widget.TabWidget) v).setDividerDrawable(arg);
        }
      }
    };
  }
  public static AttrNode dividerDrawable(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabWidget) {
          ((android.widget.TabWidget) v).setDividerDrawable(arg);
        }
      }
    };
  }
  public static AttrNode dividerHeight(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setDividerHeight(arg);
        }
      }
    };
  }
  public static AttrNode downloadListener(final android.webkit.DownloadListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setDownloadListener(arg);
        }
      }
    };
  }
  public static AttrNode drawSelectorOnTop(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setDrawSelectorOnTop(arg);
        }
      }
    };
  }
  public static AttrNode drawingCacheBackgroundColor(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setDrawingCacheBackgroundColor(arg);
        }
      }
    };
  }
  public static AttrNode drawingCacheEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setDrawingCacheEnabled(arg);
        }
      }
    };
  }
  public static AttrNode drawingCacheQuality(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setDrawingCacheQuality(arg);
        }
      }
    };
  }
  public static AttrNode dropDownAnchor(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setDropDownAnchor(arg);
        }
      }
    };
  }
  public static AttrNode dropDownBackgroundDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setDropDownBackgroundDrawable(arg);
        }
      }
    };
  }
  public static AttrNode dropDownBackgroundResource(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setDropDownBackgroundResource(arg);
        }
      }
    };
  }
  public static AttrNode dropDownHeight(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setDropDownHeight(arg);
        }
      }
    };
  }
  public static AttrNode dropDownHorizontalOffset(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setDropDownHorizontalOffset(arg);
        }
      }
    };
  }
  public static AttrNode dropDownVerticalOffset(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setDropDownVerticalOffset(arg);
        }
      }
    };
  }
  public static AttrNode dropDownWidth(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setDropDownWidth(arg);
        }
      }
    };
  }
  public static AttrNode duplicateParentStateEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setDuplicateParentStateEnabled(arg);
        }
      }
    };
  }
  public static AttrNode eGLConfigChooser(final android.opengl.GLSurfaceView.EGLConfigChooser arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.opengl.GLSurfaceView) {
          ((android.opengl.GLSurfaceView) v).setEGLConfigChooser(arg);
        }
      }
    };
  }
  public static AttrNode eGLConfigChooser(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.opengl.GLSurfaceView) {
          ((android.opengl.GLSurfaceView) v).setEGLConfigChooser(arg);
        }
      }
    };
  }
  public static AttrNode eGLContextClientVersion(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.opengl.GLSurfaceView) {
          ((android.opengl.GLSurfaceView) v).setEGLContextClientVersion(arg);
        }
      }
    };
  }
  public static AttrNode eGLContextFactory(final android.opengl.GLSurfaceView.EGLContextFactory arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.opengl.GLSurfaceView) {
          ((android.opengl.GLSurfaceView) v).setEGLContextFactory(arg);
        }
      }
    };
  }
  public static AttrNode eGLWindowSurfaceFactory(final android.opengl.GLSurfaceView.EGLWindowSurfaceFactory arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.opengl.GLSurfaceView) {
          ((android.opengl.GLSurfaceView) v).setEGLWindowSurfaceFactory(arg);
        }
      }
    };
  }
  public static AttrNode editableFactory(final android.text.Editable.Factory arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setEditableFactory(arg);
        }
      }
    };
  }
  public static AttrNode ellipsize(final android.text.TextUtils.TruncateAt arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.EditText) {
          ((android.widget.EditText) v).setEllipsize(arg);
        }
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setEllipsize(arg);
        }
      }
    };
  }
  public static AttrNode emptyView(final android.view.View arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AdapterView) {
          ((android.widget.AdapterView) v).setEmptyView(arg);
        }
      }
    };
  }
  public static AttrNode ems(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setEms(arg);
        }
      }
    };
  }
  public static AttrNode enabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.MediaController) {
          ((android.widget.MediaController) v).setEnabled(arg);
        }
        if (v instanceof android.widget.TabWidget) {
          ((android.widget.TabWidget) v).setEnabled(arg);
        }
        if (v instanceof android.widget.ZoomButton) {
          ((android.widget.ZoomButton) v).setEnabled(arg);
        }
        if (v instanceof android.widget.TimePicker) {
          ((android.widget.TimePicker) v).setEnabled(arg);
        }
        if (v instanceof android.widget.DatePicker) {
          ((android.widget.DatePicker) v).setEnabled(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setEnabled(arg);
        }
      }
    };
  }
  public static AttrNode error(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setError(arg);
        }
      }
    };
  }
  public static AttrNode eventsInterceptionEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setEventsInterceptionEnabled(arg);
        }
      }
    };
  }
  public static AttrNode excludeMimes(final java.lang.String[] arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.QuickContactBadge) {
          ((android.widget.QuickContactBadge) v).setExcludeMimes(arg);
        }
      }
    };
  }
  public static AttrNode extractedText(final android.view.inputmethod.ExtractedText arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setExtractedText(arg);
        }
        if (v instanceof android.inputmethodservice.ExtractEditText) {
          ((android.inputmethodservice.ExtractEditText) v).setExtractedText(arg);
        }
      }
    };
  }
  public static AttrNode factory(final android.widget.ViewSwitcher.ViewFactory arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ViewSwitcher) {
          ((android.widget.ViewSwitcher) v).setFactory(arg);
        }
      }
    };
  }
  public static AttrNode fadeEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setFadeEnabled(arg);
        }
      }
    };
  }
  public static AttrNode fadeOffset(final long arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setFadeOffset(arg);
        }
      }
    };
  }
  public static AttrNode fadingEdgeLength(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setFadingEdgeLength(arg);
        }
      }
    };
  }
  public static AttrNode fastScrollEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setFastScrollEnabled(arg);
        }
      }
    };
  }
  public static AttrNode fillViewport(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.HorizontalScrollView) {
          ((android.widget.HorizontalScrollView) v).setFillViewport(arg);
        }
        if (v instanceof android.widget.ScrollView) {
          ((android.widget.ScrollView) v).setFillViewport(arg);
        }
      }
    };
  }
  public static AttrNode filterText(final java.lang.String arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setFilterText(arg);
        }
      }
    };
  }
  public static AttrNode filterTouchesWhenObscured(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setFilterTouchesWhenObscured(arg);
        }
      }
    };
  }
  public static AttrNode filterWatcher(final android.text.TextWatcher arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.DialerFilter) {
          ((android.widget.DialerFilter) v).setFilterWatcher(arg);
        }
      }
    };
  }
  public static AttrNode filters(final android.text.InputFilter[] arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setFilters(arg);
        }
      }
    };
  }
  public static AttrNode flipInterval(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ViewFlipper) {
          ((android.widget.ViewFlipper) v).setFlipInterval(arg);
        }
      }
    };
  }
  public static AttrNode focusable(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AdapterView) {
          ((android.widget.AdapterView) v).setFocusable(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setFocusable(arg);
        }
      }
    };
  }
  public static AttrNode focusableInTouchMode(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AdapterView) {
          ((android.widget.AdapterView) v).setFocusableInTouchMode(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setFocusableInTouchMode(arg);
        }
      }
    };
  }
  public static AttrNode footerDividersEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setFooterDividersEnabled(arg);
        }
      }
    };
  }
  public static AttrNode foreground(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.FrameLayout) {
          ((android.widget.FrameLayout) v).setForeground(arg);
        }
      }
    };
  }
  public static AttrNode foregroundGravity(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.FrameLayout) {
          ((android.widget.FrameLayout) v).setForegroundGravity(arg);
        }
      }
    };
  }
  public static AttrNode format(final java.lang.String arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Chronometer) {
          ((android.widget.Chronometer) v).setFormat(arg);
        }
      }
    };
  }
  public static AttrNode freezesText(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setFreezesText(arg);
        }
      }
    };
  }
  public static AttrNode gLWrapper(final android.opengl.GLSurfaceView.GLWrapper arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.opengl.GLSurfaceView) {
          ((android.opengl.GLSurfaceView) v).setGLWrapper(arg);
        }
      }
    };
  }
  public static AttrNode gesture(final android.gesture.Gesture arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setGesture(arg);
        }
      }
    };
  }
  public static AttrNode gestureColor(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setGestureColor(arg);
        }
      }
    };
  }
  public static AttrNode gestureStrokeAngleThreshold(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setGestureStrokeAngleThreshold(arg);
        }
      }
    };
  }
  public static AttrNode gestureStrokeLengthThreshold(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setGestureStrokeLengthThreshold(arg);
        }
      }
    };
  }
  public static AttrNode gestureStrokeSquarenessTreshold(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setGestureStrokeSquarenessTreshold(arg);
        }
      }
    };
  }
  public static AttrNode gestureStrokeType(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setGestureStrokeType(arg);
        }
      }
    };
  }
  public static AttrNode gestureStrokeWidth(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setGestureStrokeWidth(arg);
        }
      }
    };
  }
  public static AttrNode gestureVisible(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setGestureVisible(arg);
        }
      }
    };
  }
  public static AttrNode gravity(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Gallery) {
          ((android.widget.Gallery) v).setGravity(arg);
        }
        if (v instanceof android.widget.GridView) {
          ((android.widget.GridView) v).setGravity(arg);
        }
        if (v instanceof android.widget.RelativeLayout) {
          ((android.widget.RelativeLayout) v).setGravity(arg);
        }
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setGravity(arg);
        }
        if (v instanceof android.widget.LinearLayout) {
          ((android.widget.LinearLayout) v).setGravity(arg);
        }
      }
    };
  }
  public static AttrNode groupIndicator(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setGroupIndicator(arg);
        }
      }
    };
  }
  public static AttrNode hapticFeedbackEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setHapticFeedbackEnabled(arg);
        }
      }
    };
  }
  public static AttrNode headerDividersEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setHeaderDividersEnabled(arg);
        }
      }
    };
  }
  public static AttrNode height(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setHeight(arg);
        }
      }
    };
  }
  public static AttrNode highlightColor(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setHighlightColor(arg);
        }
      }
    };
  }
  public static AttrNode hint(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setHint(arg);
        }
      }
    };
  }
  public static AttrNode hint(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setHint(arg);
        }
      }
    };
  }
  public static AttrNode hintTextColor(final android.content.res.ColorStateList arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setHintTextColor(arg);
        }
      }
    };
  }
  public static AttrNode hintTextColor(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setHintTextColor(arg);
        }
      }
    };
  }
  public static AttrNode horizontalFadingEdgeEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setHorizontalFadingEdgeEnabled(arg);
        }
      }
    };
  }
  public static AttrNode horizontalGravity(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.RelativeLayout) {
          ((android.widget.RelativeLayout) v).setHorizontalGravity(arg);
        }
        if (v instanceof android.widget.LinearLayout) {
          ((android.widget.LinearLayout) v).setHorizontalGravity(arg);
        }
      }
    };
  }
  public static AttrNode horizontalScrollBarEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setHorizontalScrollBarEnabled(arg);
        }
      }
    };
  }
  public static AttrNode horizontalScrollbarOverlay(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setHorizontalScrollbarOverlay(arg);
        }
      }
    };
  }
  public static AttrNode horizontalSpacing(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.GridView) {
          ((android.widget.GridView) v).setHorizontalSpacing(arg);
        }
      }
    };
  }
  public static AttrNode horizontallyScrolling(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setHorizontallyScrolling(arg);
        }
      }
    };
  }
  public static AttrNode id(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setId(arg);
        }
      }
    };
  }
  public static AttrNode ignoreGravity(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.RelativeLayout) {
          ((android.widget.RelativeLayout) v).setIgnoreGravity(arg);
        }
      }
    };
  }
  public static AttrNode imageBitmap(final android.graphics.Bitmap arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setImageBitmap(arg);
        }
      }
    };
  }
  public static AttrNode imageDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageSwitcher) {
          ((android.widget.ImageSwitcher) v).setImageDrawable(arg);
        }
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setImageDrawable(arg);
        }
      }
    };
  }
  public static AttrNode imageLevel(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setImageLevel(arg);
        }
      }
    };
  }
  public static AttrNode imageMatrix(final android.graphics.Matrix arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setImageMatrix(arg);
        }
      }
    };
  }
  public static AttrNode imageResource(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageSwitcher) {
          ((android.widget.ImageSwitcher) v).setImageResource(arg);
        }
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setImageResource(arg);
        }
      }
    };
  }
  public static AttrNode imageURI(final android.net.Uri arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageSwitcher) {
          ((android.widget.ImageSwitcher) v).setImageURI(arg);
        }
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setImageURI(arg);
        }
      }
    };
  }
  public static AttrNode imeOptions(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setImeOptions(arg);
        }
      }
    };
  }
  public static AttrNode inAnimation(final android.view.animation.Animation arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ViewAnimator) {
          ((android.widget.ViewAnimator) v).setInAnimation(arg);
        }
      }
    };
  }
  public static AttrNode includeFontPadding(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setIncludeFontPadding(arg);
        }
      }
    };
  }
  public static AttrNode indeterminate(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ProgressBar) {
          ((android.widget.ProgressBar) v).setIndeterminate(arg);
        }
      }
    };
  }
  public static AttrNode indeterminateDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ProgressBar) {
          ((android.widget.ProgressBar) v).setIndeterminateDrawable(arg);
        }
      }
    };
  }
  public static AttrNode inflatedId(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewStub) {
          ((android.view.ViewStub) v).setInflatedId(arg);
        }
      }
    };
  }
  public static AttrNode initialScale(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setInitialScale(arg);
        }
      }
    };
  }
  public static AttrNode inputExtras(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        try {
          if (v instanceof android.widget.TextView)
            ((android.widget.TextView) v).setInputExtras(arg);
        } catch (org.xmlpull.v1.XmlPullParserException e) {
          e.printStackTrace();
        } catch (java.io.IOException e) {
          e.printStackTrace();
        }
      }
    };
  }
  public static AttrNode inputType(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setInputType(arg);
        }
      }
    };
  }
  public static AttrNode interpolator(final android.view.animation.Interpolator arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ProgressBar) {
          ((android.widget.ProgressBar) v).setInterpolator(arg);
        }
      }
    };
  }
  public static AttrNode is24HourView(final java.lang.Boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TimePicker) {
          ((android.widget.TimePicker) v).setIs24HourView(arg);
        }
      }
    };
  }
  public static AttrNode isIndicator(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.RatingBar) {
          ((android.widget.RatingBar) v).setIsIndicator(arg);
        }
      }
    };
  }
  public static AttrNode isZoomInEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ZoomControls) {
          ((android.widget.ZoomControls) v).setIsZoomInEnabled(arg);
        }
      }
    };
  }
  public static AttrNode isZoomOutEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ZoomControls) {
          ((android.widget.ZoomControls) v).setIsZoomOutEnabled(arg);
        }
      }
    };
  }
  public static AttrNode itemsCanFocus(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setItemsCanFocus(arg);
        }
      }
    };
  }
  public static AttrNode keepScreenOn(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setKeepScreenOn(arg);
        }
      }
    };
  }
  public static AttrNode keyListener(final android.text.method.KeyListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setKeyListener(arg);
        }
      }
    };
  }
  public static AttrNode keyProgressIncrement(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsSeekBar) {
          ((android.widget.AbsSeekBar) v).setKeyProgressIncrement(arg);
        }
      }
    };
  }
  public static AttrNode keyboard(final android.inputmethodservice.Keyboard arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.inputmethodservice.KeyboardView) {
          ((android.inputmethodservice.KeyboardView) v).setKeyboard(arg);
        }
      }
    };
  }
  public static AttrNode layoutAnimation(final android.view.animation.LayoutAnimationController arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setLayoutAnimation(arg);
        }
      }
    };
  }
  public static AttrNode layoutAnimationListener(final android.view.animation.Animation.AnimationListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setLayoutAnimationListener(arg);
        }
      }
    };
  }
  public static AttrNode layoutParams(final android.view.ViewGroup.LayoutParams arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setLayoutParams(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setLayoutParams(arg);
        }
      }
    };
  }
  public static AttrNode layoutResource(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewStub) {
          ((android.view.ViewStub) v).setLayoutResource(arg);
        }
      }
    };
  }
  public static AttrNode leftStripDrawable(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabWidget) {
          ((android.widget.TabWidget) v).setLeftStripDrawable(arg);
        }
      }
    };
  }
  public static AttrNode leftStripDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabWidget) {
          ((android.widget.TabWidget) v).setLeftStripDrawable(arg);
        }
      }
    };
  }
  public static AttrNode lettersWatcher(final android.text.TextWatcher arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.DialerFilter) {
          ((android.widget.DialerFilter) v).setLettersWatcher(arg);
        }
      }
    };
  }
  public static AttrNode lines(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setLines(arg);
        }
      }
    };
  }
  public static AttrNode linkTextColor(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setLinkTextColor(arg);
        }
      }
    };
  }
  public static AttrNode linkTextColor(final android.content.res.ColorStateList arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setLinkTextColor(arg);
        }
      }
    };
  }
  public static AttrNode linksClickable(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setLinksClickable(arg);
        }
      }
    };
  }
  public static AttrNode listSelection(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setListSelection(arg);
        }
      }
    };
  }
  public static AttrNode longClickable(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setLongClickable(arg);
        }
      }
    };
  }
  public static AttrNode mapTrackballToArrowKeys(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setMapTrackballToArrowKeys(arg);
        }
      }
    };
  }
  public static AttrNode marqueeRepeatLimit(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMarqueeRepeatLimit(arg);
        }
      }
    };
  }
  public static AttrNode max(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsSeekBar) {
          ((android.widget.AbsSeekBar) v).setMax(arg);
        }
        if (v instanceof android.widget.RatingBar) {
          ((android.widget.RatingBar) v).setMax(arg);
        }
        if (v instanceof android.widget.ProgressBar) {
          ((android.widget.ProgressBar) v).setMax(arg);
        }
      }
    };
  }
  public static AttrNode maxEms(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMaxEms(arg);
        }
      }
    };
  }
  public static AttrNode maxHeight(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMaxHeight(arg);
        }
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setMaxHeight(arg);
        }
      }
    };
  }
  public static AttrNode maxLines(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMaxLines(arg);
        }
      }
    };
  }
  public static AttrNode maxWidth(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMaxWidth(arg);
        }
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setMaxWidth(arg);
        }
      }
    };
  }
  public static AttrNode measureAllChildren(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.FrameLayout) {
          ((android.widget.FrameLayout) v).setMeasureAllChildren(arg);
        }
      }
    };
  }
  public static AttrNode mediaController(final android.widget.MediaController arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.VideoView) {
          ((android.widget.VideoView) v).setMediaController(arg);
        }
      }
    };
  }
  public static AttrNode mediaPlayer(final android.widget.MediaController.MediaPlayerControl arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.MediaController) {
          ((android.widget.MediaController) v).setMediaPlayer(arg);
        }
      }
    };
  }
  public static AttrNode minEms(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMinEms(arg);
        }
      }
    };
  }
  public static AttrNode minHeight(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMinHeight(arg);
        }
      }
    };
  }
  public static AttrNode minLines(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMinLines(arg);
        }
      }
    };
  }
  public static AttrNode minWidth(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMinWidth(arg);
        }
      }
    };
  }
  public static AttrNode minimumHeight(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setMinimumHeight(arg);
        }
      }
    };
  }
  public static AttrNode minimumWidth(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setMinimumWidth(arg);
        }
      }
    };
  }
  public static AttrNode mode(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.QuickContactBadge) {
          ((android.widget.QuickContactBadge) v).setMode(arg);
        }
        if (v instanceof android.widget.DialerFilter) {
          ((android.widget.DialerFilter) v).setMode(arg);
        }
      }
    };
  }
  public static AttrNode movementMethod(final android.text.method.MovementMethod arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setMovementMethod(arg);
        }
      }
    };
  }
  public static AttrNode networkAvailable(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setNetworkAvailable(arg);
        }
      }
    };
  }
  public static AttrNode nextFocusDownId(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setNextFocusDownId(arg);
        }
      }
    };
  }
  public static AttrNode nextFocusLeftId(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setNextFocusLeftId(arg);
        }
      }
    };
  }
  public static AttrNode nextFocusRightId(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setNextFocusRightId(arg);
        }
      }
    };
  }
  public static AttrNode nextFocusUpId(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setNextFocusUpId(arg);
        }
      }
    };
  }
  public static AttrNode numColumns(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.GridView) {
          ((android.widget.GridView) v).setNumColumns(arg);
        }
      }
    };
  }
  public static AttrNode numStars(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.RatingBar) {
          ((android.widget.RatingBar) v).setNumStars(arg);
        }
      }
    };
  }
  public static AttrNode onCheckedChange(final android.widget.RadioGroup.OnCheckedChangeListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.RadioGroup) {
          ((android.widget.RadioGroup) v).setOnCheckedChangeListener(new android.widget.RadioGroup.OnCheckedChangeListener() {
            public void onCheckedChanged(android.widget.RadioGroup a0, int a1) {
              arg.onCheckedChanged(a0, a1);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onCheckedChange(final android.widget.CompoundButton.OnCheckedChangeListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.CompoundButton) {
          ((android.widget.CompoundButton) v).setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener() {
            public void onCheckedChanged(android.widget.CompoundButton a0, boolean a1) {
              arg.onCheckedChanged(a0, a1);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onChildClick(final android.widget.ExpandableListView.OnChildClickListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setOnChildClickListener(new android.widget.ExpandableListView.OnChildClickListener() {
            public boolean onChildClick(android.widget.ExpandableListView a0, android.view.View a1, int a2, int a3, long a4) {
              boolean r = arg.onChildClick(a0, a1, a2, a3, a4);
              render();
              return r;
            }
         });
        }
      }
    };
  }
  public static AttrNode onChronometerTick(final android.widget.Chronometer.OnChronometerTickListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Chronometer) {
          ((android.widget.Chronometer) v).setOnChronometerTickListener(new android.widget.Chronometer.OnChronometerTickListener() {
            public void onChronometerTick(android.widget.Chronometer a0) {
              arg.onChronometerTick(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onClick(final android.view.View.OnClickListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AdapterView) {
          ((android.widget.AdapterView) v).setOnClickListener(new android.view.View.OnClickListener() {
            public void onClick(android.view.View a0) {
              arg.onClick(a0);
              render();
            }
         });
        }
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setOnClickListener(new android.view.View.OnClickListener() {
            public void onClick(android.view.View a0) {
              arg.onClick(a0);
              render();
            }
         });
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setOnClickListener(new android.view.View.OnClickListener() {
            public void onClick(android.view.View a0) {
              arg.onClick(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onCompletion(final android.media.MediaPlayer.OnCompletionListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.VideoView) {
          ((android.widget.VideoView) v).setOnCompletionListener(new android.media.MediaPlayer.OnCompletionListener() {
            public void onCompletion(android.media.MediaPlayer a0) {
              arg.onCompletion(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onCreateContextMenu(final android.view.View.OnCreateContextMenuListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setOnCreateContextMenuListener(new android.view.View.OnCreateContextMenuListener() {
            public void onCreateContextMenu(android.view.ContextMenu a0, android.view.View a1, android.view.ContextMenu.ContextMenuInfo a2) {
              arg.onCreateContextMenu(a0, a1, a2);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onDrawerClose(final android.widget.SlidingDrawer.OnDrawerCloseListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.SlidingDrawer) {
          ((android.widget.SlidingDrawer) v).setOnDrawerCloseListener(new android.widget.SlidingDrawer.OnDrawerCloseListener() {
            public void onDrawerClosed() {
              arg.onDrawerClosed();
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onDrawerOpen(final android.widget.SlidingDrawer.OnDrawerOpenListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.SlidingDrawer) {
          ((android.widget.SlidingDrawer) v).setOnDrawerOpenListener(new android.widget.SlidingDrawer.OnDrawerOpenListener() {
            public void onDrawerOpened() {
              arg.onDrawerOpened();
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onDrawerScroll(final android.widget.SlidingDrawer.OnDrawerScrollListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.SlidingDrawer) {
          ((android.widget.SlidingDrawer) v).setOnDrawerScrollListener(new android.widget.SlidingDrawer.OnDrawerScrollListener() {
            public void onScrollStarted() {
              arg.onScrollStarted();
              render();
            }
            public void onScrollEnded() {
              arg.onScrollEnded();
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onEditorAction(final android.widget.TextView.OnEditorActionListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setOnEditorActionListener(new android.widget.TextView.OnEditorActionListener() {
            public boolean onEditorAction(android.widget.TextView a0, int a1, android.view.KeyEvent a2) {
              boolean r = arg.onEditorAction(a0, a1, a2);
              render();
              return r;
            }
         });
        }
      }
    };
  }
  public static AttrNode onError(final android.media.MediaPlayer.OnErrorListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.VideoView) {
          ((android.widget.VideoView) v).setOnErrorListener(new android.media.MediaPlayer.OnErrorListener() {
            public boolean onError(android.media.MediaPlayer a0, int a1, int a2) {
              boolean r = arg.onError(a0, a1, a2);
              render();
              return r;
            }
         });
        }
      }
    };
  }
  public static AttrNode onFocusChange(final android.view.View.OnFocusChangeListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setOnFocusChangeListener(new android.view.View.OnFocusChangeListener() {
            public void onFocusChange(android.view.View a0, boolean a1) {
              arg.onFocusChange(a0, a1);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onGroupClick(final android.widget.ExpandableListView.OnGroupClickListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setOnGroupClickListener(new android.widget.ExpandableListView.OnGroupClickListener() {
            public boolean onGroupClick(android.widget.ExpandableListView a0, android.view.View a1, int a2, long a3) {
              boolean r = arg.onGroupClick(a0, a1, a2, a3);
              render();
              return r;
            }
         });
        }
      }
    };
  }
  public static AttrNode onGroupCollapse(final android.widget.ExpandableListView.OnGroupCollapseListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setOnGroupCollapseListener(new android.widget.ExpandableListView.OnGroupCollapseListener() {
            public void onGroupCollapse(int a0) {
              arg.onGroupCollapse(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onGroupExpand(final android.widget.ExpandableListView.OnGroupExpandListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setOnGroupExpandListener(new android.widget.ExpandableListView.OnGroupExpandListener() {
            public void onGroupExpand(int a0) {
              arg.onGroupExpand(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onHierarchyChange(final android.view.ViewGroup.OnHierarchyChangeListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TableLayout) {
          ((android.widget.TableLayout) v).setOnHierarchyChangeListener(new android.view.ViewGroup.OnHierarchyChangeListener() {
            public void onChildViewRemoved(android.view.View a0, android.view.View a1) {
              arg.onChildViewRemoved(a0, a1);
              render();
            }
            public void onChildViewAdded(android.view.View a0, android.view.View a1) {
              arg.onChildViewAdded(a0, a1);
              render();
            }
         });
        }
        if (v instanceof android.widget.RadioGroup) {
          ((android.widget.RadioGroup) v).setOnHierarchyChangeListener(new android.view.ViewGroup.OnHierarchyChangeListener() {
            public void onChildViewRemoved(android.view.View a0, android.view.View a1) {
              arg.onChildViewRemoved(a0, a1);
              render();
            }
            public void onChildViewAdded(android.view.View a0, android.view.View a1) {
              arg.onChildViewAdded(a0, a1);
              render();
            }
         });
        }
        if (v instanceof android.widget.TableRow) {
          ((android.widget.TableRow) v).setOnHierarchyChangeListener(new android.view.ViewGroup.OnHierarchyChangeListener() {
            public void onChildViewRemoved(android.view.View a0, android.view.View a1) {
              arg.onChildViewRemoved(a0, a1);
              render();
            }
            public void onChildViewAdded(android.view.View a0, android.view.View a1) {
              arg.onChildViewAdded(a0, a1);
              render();
            }
         });
        }
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setOnHierarchyChangeListener(new android.view.ViewGroup.OnHierarchyChangeListener() {
            public void onChildViewRemoved(android.view.View a0, android.view.View a1) {
              arg.onChildViewRemoved(a0, a1);
              render();
            }
            public void onChildViewAdded(android.view.View a0, android.view.View a1) {
              arg.onChildViewAdded(a0, a1);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onInflate(final android.view.ViewStub.OnInflateListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewStub) {
          ((android.view.ViewStub) v).setOnInflateListener(new android.view.ViewStub.OnInflateListener() {
            public void onInflate(android.view.ViewStub a0, android.view.View a1) {
              arg.onInflate(a0, a1);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onItemClick(final android.widget.AdapterView.OnItemClickListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
            public void onItemClick(android.widget.AdapterView a0, android.view.View a1, int a2, long a3) {
              arg.onItemClick(a0, a1, a2, a3);
              render();
            }
         });
        }
        if (v instanceof android.widget.AdapterView) {
          ((android.widget.AdapterView) v).setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
            public void onItemClick(android.widget.AdapterView a0, android.view.View a1, int a2, long a3) {
              arg.onItemClick(a0, a1, a2, a3);
              render();
            }
         });
        }
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
            public void onItemClick(android.widget.AdapterView a0, android.view.View a1, int a2, long a3) {
              arg.onItemClick(a0, a1, a2, a3);
              render();
            }
         });
        }
        if (v instanceof android.widget.Spinner) {
          ((android.widget.Spinner) v).setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
            public void onItemClick(android.widget.AdapterView a0, android.view.View a1, int a2, long a3) {
              arg.onItemClick(a0, a1, a2, a3);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onItemLongClick(final android.widget.AdapterView.OnItemLongClickListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AdapterView) {
          ((android.widget.AdapterView) v).setOnItemLongClickListener(new android.widget.AdapterView.OnItemLongClickListener() {
            public boolean onItemLongClick(android.widget.AdapterView a0, android.view.View a1, int a2, long a3) {
              boolean r = arg.onItemLongClick(a0, a1, a2, a3);
              render();
              return r;
            }
         });
        }
      }
    };
  }
  public static AttrNode onItemSelected(final android.widget.AdapterView.OnItemSelectedListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AdapterView) {
          ((android.widget.AdapterView) v).setOnItemSelectedListener(new android.widget.AdapterView.OnItemSelectedListener() {
            public void onItemSelected(android.widget.AdapterView a0, android.view.View a1, int a2, long a3) {
              arg.onItemSelected(a0, a1, a2, a3);
              render();
            }
            public void onNothingSelected(android.widget.AdapterView a0) {
              arg.onNothingSelected(a0);
              render();
            }
         });
        }
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setOnItemSelectedListener(new android.widget.AdapterView.OnItemSelectedListener() {
            public void onItemSelected(android.widget.AdapterView a0, android.view.View a1, int a2, long a3) {
              arg.onItemSelected(a0, a1, a2, a3);
              render();
            }
            public void onNothingSelected(android.widget.AdapterView a0) {
              arg.onNothingSelected(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onKey(final android.view.View.OnKeyListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setOnKeyListener(new android.view.View.OnKeyListener() {
            public boolean onKey(android.view.View a0, int a1, android.view.KeyEvent a2) {
              boolean r = arg.onKey(a0, a1, a2);
              render();
              return r;
            }
         });
        }
      }
    };
  }
  public static AttrNode onKeyboardAction(final android.inputmethodservice.KeyboardView.OnKeyboardActionListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.inputmethodservice.KeyboardView) {
          ((android.inputmethodservice.KeyboardView) v).setOnKeyboardActionListener(new android.inputmethodservice.KeyboardView.OnKeyboardActionListener() {
            public void onPress(int a0) {
              arg.onPress(a0);
              render();
            }
            public void onRelease(int a0) {
              arg.onRelease(a0);
              render();
            }
            public void onText(java.lang.CharSequence a0) {
              arg.onText(a0);
              render();
            }
            public void swipeRight() {
              arg.swipeRight();
              render();
            }
            public void swipeLeft() {
              arg.swipeLeft();
              render();
            }
            public void swipeUp() {
              arg.swipeUp();
              render();
            }
            public void swipeDown() {
              arg.swipeDown();
              render();
            }
            public void onKey(int a0, int[] a1) {
              arg.onKey(a0, a1);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onLongClick(final android.view.View.OnLongClickListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setOnLongClickListener(new android.view.View.OnLongClickListener() {
            public boolean onLongClick(android.view.View a0) {
              boolean r = arg.onLongClick(a0);
              render();
              return r;
            }
         });
        }
      }
    };
  }
  public static AttrNode onPrepared(final android.media.MediaPlayer.OnPreparedListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.VideoView) {
          ((android.widget.VideoView) v).setOnPreparedListener(new android.media.MediaPlayer.OnPreparedListener() {
            public void onPrepared(android.media.MediaPlayer a0) {
              arg.onPrepared(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onRatingBarChange(final android.widget.RatingBar.OnRatingBarChangeListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.RatingBar) {
          ((android.widget.RatingBar) v).setOnRatingBarChangeListener(new android.widget.RatingBar.OnRatingBarChangeListener() {
            public void onRatingChanged(android.widget.RatingBar a0, float a1, boolean a2) {
              arg.onRatingChanged(a0, a1, a2);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onScroll(final android.widget.AbsListView.OnScrollListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setOnScrollListener(new android.widget.AbsListView.OnScrollListener() {
            public void onScroll(android.widget.AbsListView a0, int a1, int a2, int a3) {
              arg.onScroll(a0, a1, a2, a3);
              render();
            }
            public void onScrollStateChanged(android.widget.AbsListView a0, int a1) {
              arg.onScrollStateChanged(a0, a1);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onSeekBarChange(final android.widget.SeekBar.OnSeekBarChangeListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.SeekBar) {
          ((android.widget.SeekBar) v).setOnSeekBarChangeListener(new android.widget.SeekBar.OnSeekBarChangeListener() {
            public void onProgressChanged(android.widget.SeekBar a0, int a1, boolean a2) {
              arg.onProgressChanged(a0, a1, a2);
              render();
            }
            public void onStartTrackingTouch(android.widget.SeekBar a0) {
              arg.onStartTrackingTouch(a0);
              render();
            }
            public void onStopTrackingTouch(android.widget.SeekBar a0) {
              arg.onStopTrackingTouch(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onTabChanged(final android.widget.TabHost.OnTabChangeListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabHost) {
          ((android.widget.TabHost) v).setOnTabChangedListener(new android.widget.TabHost.OnTabChangeListener() {
            public void onTabChanged(java.lang.String a0) {
              arg.onTabChanged(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onTimeChanged(final android.widget.TimePicker.OnTimeChangedListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TimePicker) {
          ((android.widget.TimePicker) v).setOnTimeChangedListener(new android.widget.TimePicker.OnTimeChangedListener() {
            public void onTimeChanged(android.widget.TimePicker a0, int a1, int a2) {
              arg.onTimeChanged(a0, a1, a2);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onTouch(final android.view.View.OnTouchListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setOnTouchListener(new android.view.View.OnTouchListener() {
            public boolean onTouch(android.view.View a0, android.view.MotionEvent a1) {
              boolean r = arg.onTouch(a0, a1);
              render();
              return r;
            }
         });
        }
      }
    };
  }
  public static AttrNode onZoomInClick(final android.view.View.OnClickListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ZoomControls) {
          ((android.widget.ZoomControls) v).setOnZoomInClickListener(new android.view.View.OnClickListener() {
            public void onClick(android.view.View a0) {
              arg.onClick(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode onZoomOutClick(final android.view.View.OnClickListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ZoomControls) {
          ((android.widget.ZoomControls) v).setOnZoomOutClickListener(new android.view.View.OnClickListener() {
            public void onClick(android.view.View a0) {
              arg.onClick(a0);
              render();
            }
         });
        }
      }
    };
  }
  public static AttrNode orientation(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setOrientation(arg);
        }
        if (v instanceof android.widget.LinearLayout) {
          ((android.widget.LinearLayout) v).setOrientation(arg);
        }
      }
    };
  }
  public static AttrNode outAnimation(final android.view.animation.Animation arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ViewAnimator) {
          ((android.widget.ViewAnimator) v).setOutAnimation(arg);
        }
      }
    };
  }
  public static AttrNode overScrollMode(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.HorizontalScrollView) {
          ((android.widget.HorizontalScrollView) v).setOverScrollMode(arg);
        }
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setOverScrollMode(arg);
        }
        if (v instanceof android.widget.ScrollView) {
          ((android.widget.ScrollView) v).setOverScrollMode(arg);
        }
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setOverScrollMode(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setOverScrollMode(arg);
        }
      }
    };
  }
  public static AttrNode overscrollFooter(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setOverscrollFooter(arg);
        }
      }
    };
  }
  public static AttrNode overscrollHeader(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setOverscrollHeader(arg);
        }
      }
    };
  }
  public static AttrNode paintFlags(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setPaintFlags(arg);
        }
      }
    };
  }
  public static AttrNode persistentDrawingCache(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.ViewGroup) {
          ((android.view.ViewGroup) v).setPersistentDrawingCache(arg);
        }
      }
    };
  }
  public static AttrNode pictureListener(final android.webkit.WebView.PictureListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setPictureListener(arg);
        }
      }
    };
  }
  public static AttrNode popupParent(final android.view.View arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.inputmethodservice.KeyboardView) {
          ((android.inputmethodservice.KeyboardView) v).setPopupParent(arg);
        }
      }
    };
  }
  public static AttrNode pressed(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setPressed(arg);
        }
      }
    };
  }
  public static AttrNode previewEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.inputmethodservice.KeyboardView) {
          ((android.inputmethodservice.KeyboardView) v).setPreviewEnabled(arg);
        }
      }
    };
  }
  public static AttrNode privateImeOptions(final java.lang.String arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setPrivateImeOptions(arg);
        }
      }
    };
  }
  public static AttrNode progress(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ProgressBar) {
          ((android.widget.ProgressBar) v).setProgress(arg);
        }
      }
    };
  }
  public static AttrNode progressDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ProgressBar) {
          ((android.widget.ProgressBar) v).setProgressDrawable(arg);
        }
      }
    };
  }
  public static AttrNode prompt(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Spinner) {
          ((android.widget.Spinner) v).setPrompt(arg);
        }
      }
    };
  }
  public static AttrNode promptId(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Spinner) {
          ((android.widget.Spinner) v).setPromptId(arg);
        }
      }
    };
  }
  public static AttrNode proximityCorrectionEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.inputmethodservice.KeyboardView) {
          ((android.inputmethodservice.KeyboardView) v).setProximityCorrectionEnabled(arg);
        }
      }
    };
  }
  public static AttrNode rating(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.RatingBar) {
          ((android.widget.RatingBar) v).setRating(arg);
        }
      }
    };
  }
  public static AttrNode rawInputType(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setRawInputType(arg);
        }
      }
    };
  }
  public static AttrNode recyclerListener(final android.widget.AbsListView.RecyclerListener arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setRecyclerListener(arg);
        }
      }
    };
  }
  public static AttrNode renderMode(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.opengl.GLSurfaceView) {
          ((android.opengl.GLSurfaceView) v).setRenderMode(arg);
        }
      }
    };
  }
  public static AttrNode renderer(final android.opengl.GLSurfaceView.Renderer arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.opengl.GLSurfaceView) {
          ((android.opengl.GLSurfaceView) v).setRenderer(arg);
        }
      }
    };
  }
  public static AttrNode rightStripDrawable(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabWidget) {
          ((android.widget.TabWidget) v).setRightStripDrawable(arg);
        }
      }
    };
  }
  public static AttrNode rightStripDrawable(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabWidget) {
          ((android.widget.TabWidget) v).setRightStripDrawable(arg);
        }
      }
    };
  }
  public static AttrNode saveEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setSaveEnabled(arg);
        }
      }
    };
  }
  public static AttrNode scaleType(final android.widget.ImageView.ScaleType arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setScaleType(arg);
        }
      }
    };
  }
  public static AttrNode scrollBarStyle(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setScrollBarStyle(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setScrollBarStyle(arg);
        }
      }
    };
  }
  public static AttrNode scrollContainer(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setScrollContainer(arg);
        }
      }
    };
  }
  public static AttrNode scrollbarFadingEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setScrollbarFadingEnabled(arg);
        }
      }
    };
  }
  public static AttrNode scroller(final android.widget.Scroller arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setScroller(arg);
        }
      }
    };
  }
  public static AttrNode scrollingCacheEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setScrollingCacheEnabled(arg);
        }
      }
    };
  }
  public static AttrNode secondaryProgress(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ProgressBar) {
          ((android.widget.ProgressBar) v).setSecondaryProgress(arg);
        }
      }
    };
  }
  public static AttrNode selectAllOnFocus(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setSelectAllOnFocus(arg);
        }
      }
    };
  }
  public static AttrNode selected(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setSelected(arg);
        }
        if (v instanceof android.widget.ImageView) {
          ((android.widget.ImageView) v).setSelected(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setSelected(arg);
        }
      }
    };
  }
  public static AttrNode selectedGroup(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ExpandableListView) {
          ((android.widget.ExpandableListView) v).setSelectedGroup(arg);
        }
      }
    };
  }
  public static AttrNode selection(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.EditText) {
          ((android.widget.EditText) v).setSelection(arg);
        }
        if (v instanceof android.widget.ListView) {
          ((android.widget.ListView) v).setSelection(arg);
        }
        if (v instanceof android.widget.GridView) {
          ((android.widget.GridView) v).setSelection(arg);
        }
        if (v instanceof android.widget.AdapterView) {
          ((android.widget.AdapterView) v).setSelection(arg);
        }
        if (v instanceof android.widget.AbsSpinner) {
          ((android.widget.AbsSpinner) v).setSelection(arg);
        }
      }
    };
  }
  public static AttrNode selector(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setSelector(arg);
        }
      }
    };
  }
  public static AttrNode selector(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setSelector(arg);
        }
      }
    };
  }
  public static AttrNode shifted(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.inputmethodservice.KeyboardView) {
          ((android.inputmethodservice.KeyboardView) v).setShifted(arg);
        }
      }
    };
  }
  public static AttrNode shrinkAllColumns(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TableLayout) {
          ((android.widget.TableLayout) v).setShrinkAllColumns(arg);
        }
      }
    };
  }
  public static AttrNode singleLine(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setSingleLine(arg);
        }
      }
    };
  }
  public static AttrNode smoothScrollbarEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setSmoothScrollbarEnabled(arg);
        }
      }
    };
  }
  public static AttrNode smoothScrollingEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.HorizontalScrollView) {
          ((android.widget.HorizontalScrollView) v).setSmoothScrollingEnabled(arg);
        }
        if (v instanceof android.widget.ScrollView) {
          ((android.widget.ScrollView) v).setSmoothScrollingEnabled(arg);
        }
      }
    };
  }
  public static AttrNode soundEffectsEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setSoundEffectsEnabled(arg);
        }
      }
    };
  }
  public static AttrNode spacing(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Gallery) {
          ((android.widget.Gallery) v).setSpacing(arg);
        }
      }
    };
  }
  public static AttrNode spannableFactory(final android.text.Spannable.Factory arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setSpannableFactory(arg);
        }
      }
    };
  }
  public static AttrNode stackFromBottom(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setStackFromBottom(arg);
        }
      }
    };
  }
  public static AttrNode stepSize(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.RatingBar) {
          ((android.widget.RatingBar) v).setStepSize(arg);
        }
      }
    };
  }
  public static AttrNode stretchAllColumns(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TableLayout) {
          ((android.widget.TableLayout) v).setStretchAllColumns(arg);
        }
      }
    };
  }
  public static AttrNode stretchMode(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.GridView) {
          ((android.widget.GridView) v).setStretchMode(arg);
        }
      }
    };
  }
  public static AttrNode stripEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabWidget) {
          ((android.widget.TabWidget) v).setStripEnabled(arg);
        }
      }
    };
  }
  public static AttrNode tag(final java.lang.Object arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setTag(arg);
        }
      }
    };
  }
  public static AttrNode text(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setText(arg);
        }
        if (v instanceof android.widget.TextSwitcher) {
          ((android.widget.TextSwitcher) v).setText(arg);
        }
      }
    };
  }
  public static AttrNode text(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setText(arg);
        }
      }
    };
  }
  public static AttrNode textColor(final android.content.res.ColorStateList arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setTextColor(arg);
        }
      }
    };
  }
  public static AttrNode textColor(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setTextColor(arg);
        }
      }
    };
  }
  public static AttrNode textFilterEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setTextFilterEnabled(arg);
        }
      }
    };
  }
  public static AttrNode textKeepState(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setTextKeepState(arg);
        }
      }
    };
  }
  public static AttrNode textOff(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ToggleButton) {
          ((android.widget.ToggleButton) v).setTextOff(arg);
        }
      }
    };
  }
  public static AttrNode textOn(final java.lang.CharSequence arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ToggleButton) {
          ((android.widget.ToggleButton) v).setTextOn(arg);
        }
      }
    };
  }
  public static AttrNode textScaleX(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setTextScaleX(arg);
        }
      }
    };
  }
  public static AttrNode textSize(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setTextSize(arg);
        }
      }
    };
  }
  public static AttrNode threshold(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setThreshold(arg);
        }
      }
    };
  }
  public static AttrNode thumb(final android.graphics.drawable.Drawable arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsSeekBar) {
          ((android.widget.AbsSeekBar) v).setThumb(arg);
        }
      }
    };
  }
  public static AttrNode thumbOffset(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsSeekBar) {
          ((android.widget.AbsSeekBar) v).setThumbOffset(arg);
        }
      }
    };
  }
  public static AttrNode tokenizer(final android.widget.MultiAutoCompleteTextView.Tokenizer arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.MultiAutoCompleteTextView) {
          ((android.widget.MultiAutoCompleteTextView) v).setTokenizer(arg);
        }
      }
    };
  }
  public static AttrNode touchDelegate(final android.view.TouchDelegate arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setTouchDelegate(arg);
        }
      }
    };
  }
  public static AttrNode transcriptMode(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AbsListView) {
          ((android.widget.AbsListView) v).setTranscriptMode(arg);
        }
      }
    };
  }
  public static AttrNode transformationMethod(final android.text.method.TransformationMethod arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setTransformationMethod(arg);
        }
      }
    };
  }
  public static AttrNode typeface(final android.graphics.Typeface arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setTypeface(arg);
        }
      }
    };
  }
  public static AttrNode uncertainGestureColor(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.gesture.GestureOverlayView) {
          ((android.gesture.GestureOverlayView) v).setUncertainGestureColor(arg);
        }
      }
    };
  }
  public static AttrNode unselectedAlpha(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.Gallery) {
          ((android.widget.Gallery) v).setUnselectedAlpha(arg);
        }
      }
    };
  }
  public static AttrNode up(final android.app.LocalActivityManager arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TabHost) {
          ((android.widget.TabHost) v).setup(arg);
        }
      }
    };
  }
  public static AttrNode validator(final android.widget.AutoCompleteTextView.Validator arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.AutoCompleteTextView) {
          ((android.widget.AutoCompleteTextView) v).setValidator(arg);
        }
      }
    };
  }
  public static AttrNode verticalCorrection(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.inputmethodservice.KeyboardView) {
          ((android.inputmethodservice.KeyboardView) v).setVerticalCorrection(arg);
        }
      }
    };
  }
  public static AttrNode verticalFadingEdgeEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setVerticalFadingEdgeEnabled(arg);
        }
      }
    };
  }
  public static AttrNode verticalGravity(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.RelativeLayout) {
          ((android.widget.RelativeLayout) v).setVerticalGravity(arg);
        }
        if (v instanceof android.widget.LinearLayout) {
          ((android.widget.LinearLayout) v).setVerticalGravity(arg);
        }
      }
    };
  }
  public static AttrNode verticalScrollBarEnabled(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setVerticalScrollBarEnabled(arg);
        }
      }
    };
  }
  public static AttrNode verticalScrollbarOverlay(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setVerticalScrollbarOverlay(arg);
        }
      }
    };
  }
  public static AttrNode verticalSpacing(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.GridView) {
          ((android.widget.GridView) v).setVerticalSpacing(arg);
        }
      }
    };
  }
  public static AttrNode videoPath(final java.lang.String arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.VideoView) {
          ((android.widget.VideoView) v).setVideoPath(arg);
        }
      }
    };
  }
  public static AttrNode videoURI(final android.net.Uri arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.VideoView) {
          ((android.widget.VideoView) v).setVideoURI(arg);
        }
      }
    };
  }
  public static AttrNode visibility(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ProgressBar) {
          ((android.widget.ProgressBar) v).setVisibility(arg);
        }
        if (v instanceof android.view.ViewStub) {
          ((android.view.ViewStub) v).setVisibility(arg);
        }
        if (v instanceof android.view.View) {
          ((android.view.View) v).setVisibility(arg);
        }
        if (v instanceof android.view.SurfaceView) {
          ((android.view.SurfaceView) v).setVisibility(arg);
        }
      }
    };
  }
  public static AttrNode webChromeClient(final android.webkit.WebChromeClient arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setWebChromeClient(arg);
        }
      }
    };
  }
  public static AttrNode webViewClient(final android.webkit.WebViewClient arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.webkit.WebView) {
          ((android.webkit.WebView) v).setWebViewClient(arg);
        }
      }
    };
  }
  public static AttrNode weightSum(final float arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.LinearLayout) {
          ((android.widget.LinearLayout) v).setWeightSum(arg);
        }
      }
    };
  }
  public static AttrNode width(final int arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.TextView) {
          ((android.widget.TextView) v).setWidth(arg);
        }
      }
    };
  }
  public static AttrNode willNotCacheDrawing(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setWillNotCacheDrawing(arg);
        }
      }
    };
  }
  public static AttrNode willNotDraw(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.View) {
          ((android.view.View) v).setWillNotDraw(arg);
        }
      }
    };
  }
  public static AttrNode zOrderMediaOverlay(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.SurfaceView) {
          ((android.view.SurfaceView) v).setZOrderMediaOverlay(arg);
        }
      }
    };
  }
  public static AttrNode zOrderOnTop(final boolean arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.view.SurfaceView) {
          ((android.view.SurfaceView) v).setZOrderOnTop(arg);
        }
      }
    };
  }
  public static AttrNode zoomSpeed(final long arg) {
    return new SimpleAttrNode(arg) {
      public void apply(View v) {
        if (v instanceof android.widget.ZoomButton) {
          ((android.widget.ZoomButton) v).setZoomSpeed(arg);
        }
        if (v instanceof android.widget.ZoomControls) {
          ((android.widget.ZoomControls) v).setZoomSpeed(arg);
        }
      }
    };
  }
}




Java Source Code List

trikita.anvil.Props.java
trikita.anvil.Render.java
trikita.anvil.example.Backstack.java
trikita.anvil.example.CountDownView.java
trikita.anvil.example.MainActivity.java
trikita.anvil.example.StartView.java
trikita.anvil.example.Tasks.java
trikita.anvil.v10.Props.java
trikita.anvil.v15.Props.java