Code example for TypedArray

Methods: hasValue

0
            mStyles = styles;
        } 
 
        @Override 
        public String[] getStringArray(final TypedArray a, final int index) {
            if (a.hasValue(index)) {
                return parseStringArray(a, index);
            } 
            final Object value = mStyleAttributes.get(index);
            if (value != null) {
                return (String[])value;
            } 
            final KeyStyle parentStyle = mStyles.get(mParentStyleName);
            return parentStyle.getStringArray(a, index);
        } 
 
        @Override 
        public String getString(final TypedArray a, final int index) {
            if (a.hasValue(index)) {
                return parseString(a, index);
            }