Code example for TypedArray

Methods: getBooleangetDimensionPixelSizegetDrawablegetIntrecycle

	public IcsLinearLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        TypedArray a = context.obtainStyledAttributes(attrs, /**/R_styleable_LinearLayout);
        mShowDividers = a.getInt(/**/LinearLayout_showDividers, SHOW_DIVIDER_NONE);
        mDividerPadding = a.getDimensionPixelSize(/**/LinearLayout_dividerPadding, 0);
        mUseLargestChild = a.getBoolean(/**/LinearLayout_measureWithLargestChild, false);
     * Set how dividers should be shown between items in this layout 
     * @param showDividers One or more of {@link #SHOW_DIVIDER_BEGINNING}, 
     *                     {@link #SHOW_DIVIDER_MIDDLE}, or {@link #SHOW_DIVIDER_END}, 
     *                     or {@link #SHOW_DIVIDER_NONE} to show no dividers. 
Stop searching for code, let great code find you!  Add Codota to your java IDE