attr
当你看到attr的时候一般是自定义view的属性的时候:
 <*****.OnlineTitleBar
        android:id="@+id/public_title"
        android:layout_width="match_parent"
        android:layout_weight="0"
        android:layout_height="@dimen/default_public_top_hei"
        attr:plugin_color_Subject="@color/public_title"
        android:background="@drawable/online_title_bar"/>一般这样找: 
去你的控件实现类*.OnlineTitleBar里面去找: 
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.plugin_attr);
        if(a.hasValue(R.styleable.plugin_attr_plugin_color_Subject)) {
            mTitleColor = a.getColor(R.styleable.plugin_attr_plugin_color_Subject, 0);
        }会找到这里使用的。 那你会问plugin_attr_是什么? 
这是自定义属性,在attr.xml里面会有定义。 
    泰山崩于前而色不变的曹新雨,抱歉
 
                    
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号