android - Too many attribute references warning. Possible causes? -


i developed aplication , noticed lot of " many attribute references" warnings in logcat.

w/resourcetype﹕ many attribute references, stopped at: 0x######## 

i use support.v7.23.1.0 design library. define styles this:

 <style name="apptheme.description.textview" parent="@android:style/widget.textview">         <item name="android:textcolor">@color/textcolorsecondary</item>         <item name="android:textcolorprimary">@color/textcolorsecondary</item>         <item name="android:textsize">@dimen/textsizeitemdescription</item>     </style> 

application theme:

<!-- base application theme. --> <style name="apptheme" parent="theme.appcompat.light.noactionbar">     <!-- customize theme here. -->     <item name="android:textcolorhighlight">@color/colorprimarylight</item>     <item name="colorprimary">@color/colorprimary</item>     <!--status bar background color-->     <item name="colorprimarydark">@color/colorprimarydark</item>     <!-- color of drawer toggle , other stuff-->     <item name="android:textcolorsecondary">@color/textcolorsecondary</item>     <!-- used define color preference categories titles be-->     <item name="coloraccent">@color/coloraccent</item>     <!--overrides text color secondary widgets , action mode     -->     <item name="colorcontrolnormal">@color/colorcontrolnormal</item>     <!--when widget activated text writing or stuff  -->     <item name="colorcontrolactivated">@color/colorprimarylight</item>     <!--when menu items being clicked -->     <item name="colorcontrolhighlight">@color/colorprimarylight</item>     <!--used in areas text color needed (textviews, spinners, etc)-->     <item name="android:textcolor">@color/textcolor</item>     <!--used in text inputs edittext-->     <item name="android:textcolorprimary">@color/textcolorprimary</item>     <!--main application background-->     <item name="android:colorbackground">@color/colorbackground</item>     <item name="drawerarrowstyle">@style/theme.drawerarrowstyle</item>     <!--context action meniu overlay toolbar-->     <item name="windowactionmodeoverlay">true</item>     <item name="toolbarstyle">@style/apptheme.toolbar</item>  </style> 

i searched problem , found :

textview txtview= new textview(new contextthemewrapper(context, r.style.stylename)); 

but don't have kind of code in app.

i wish know reasons can cause warning?

update 2015-10-22 17:30 how resolved problem changing custom styles this

<style name="apptheme.description.textview" parent="">         <item name="android:textcolor">@color/textcolorsecondary</item>         <item name="android:textcolorprimary">@color/textcolorsecondary</item>         <item name="android:textsize">@dimen/textsizeitemdescription</item>     </style> 

i mean left parent empty. not sure if solution or bad ?

i had same issue , @ point attribute chain created. removing parent chain broken should good.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -