Code example for TypedValue

Methods: resolveAttribute

0
            P.mIconId = iconId;
            return this;
        } 
 
        public Builder setIconAttribute(int attrId) {
            TypedValue out = new TypedValue();
            P.mContext.getTheme().resolveAttribute(attrId, out, true);
            P.mIconId = out.resourceId;
            return this;
        } 
 
        public Builder setInverseBackgroundForced(boolean useInverseBackground) {
            P.mForceInverseBackground = useInverseBackground;
            return this;
        } 
 
        public Builder setItems(CharSequence[] items,
                final OnClickListener listener) {
            P.mItems = items;
            P.mOnClickListener = listener;
            return this;