title: Too many attribute references warning. Possible causes?
body: <p>I developed an aplication and noticed that i get a lot of " Too many attribute references" warnings in logcat. </p>
  
  <pre><code>W/ResourceType﹕ Too many attribute references, stopped at: 0x########
  </code></pre>
  
  <p>I use support.v7.23.1.0 also design library. I define my styles like this:</p>
  
  <pre><code> &lt;style name="AppTheme.Description.TextView" parent="@android:style/Widget.TextView"&gt;
          &lt;item name="android:textColor"&gt;@color/textColorSecondary&lt;/item&gt;
          &lt;item name="android:textColorPrimary"&gt;@color/textColorSecondary&lt;/item&gt;
          &lt;item name="android:textSize"&gt;@dimen/textSizeItemDescription&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>Application theme:</p>
  
  <pre><code>&lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
      &lt;item name="android:textColorHighlight"&gt;@color/colorPrimaryLight&lt;/item&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;!--status bar background color--&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;!-- color of drawer toggle and other stuff--&gt;
      &lt;item name="android:textColorSecondary"&gt;@color/textColorSecondary&lt;/item&gt;
      &lt;!-- Used to define what color preference categories titles will be--&gt;
      &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
      &lt;!--overrides text color secondary for widgets and action mode     --&gt;
      &lt;item name="colorControlNormal"&gt;@color/colorControlNormal&lt;/item&gt;
      &lt;!--when widget is activated for text writing or stuff  --&gt;
      &lt;item name="colorControlActivated"&gt;@color/colorPrimaryLight&lt;/item&gt;
      &lt;!--when menu items are being Clicked --&gt;
      &lt;item name="colorControlHighlight"&gt;@color/colorPrimaryLight&lt;/item&gt;
      &lt;!--used in all areas where text color is needed (TextViews, Spinners, etc)--&gt;
      &lt;item name="android:textColor"&gt;@color/textColor&lt;/item&gt;
      &lt;!--used in text inputs like EditText--&gt;
      &lt;item name="android:textColorPrimary"&gt;@color/textColorPrimary&lt;/item&gt;
      &lt;!--main application background--&gt;
      &lt;item name="android:colorBackground"&gt;@color/colorBackground&lt;/item&gt;
      &lt;item name="drawerArrowStyle"&gt;@style/Theme.DrawerArrowStyle&lt;/item&gt;
      &lt;!--Context action meniu will overlay toolbar--&gt;
      &lt;item name="windowActionModeOverlay"&gt;true&lt;/item&gt;
      &lt;item name="toolbarStyle"&gt;@style/AppTheme.Toolbar&lt;/item&gt;
  
  &lt;/style&gt;
  </code></pre>
  
  <p>I searched the problem , but all i found is :</p>
  
  <pre><code>TextView txtView= new TextView(new ContextThemeWrapper(context, R.style.styleName));
  </code></pre>
  
  <p>But I don't have that kind of code in my app.</p>
  
  <p>I wish to know what reasons can cause  this warning? </p>
  
  <p><strong>Update 2015-10-22 17:30</strong>
  I some how resolved this problem by changing all custom styles like this</p>
  
  <pre><code>&lt;style name="AppTheme.Description.TextView" parent=""&gt;
          &lt;item name="android:textColor"&gt;@color/textColorSecondary&lt;/item&gt;
          &lt;item name="android:textColorPrimary"&gt;@color/textColorSecondary&lt;/item&gt;
          &lt;item name="android:textSize"&gt;@dimen/textSizeItemDescription&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>I mean i left parent empty. Not sure if this is good solution or bad ? </p>