相关疑难解决方法(0)

属性引用太多警告.可能的原因?

我开发了一个应用程序,并注意到我在logcat中收到了很多"太多的属性引用"警告.

W/ResourceType? Too many attribute references, stopped at: 0x########
Run Code Online (Sandbox Code Playgroud)

我使用support.v7.23.1.0也设计库.我定义我的样式如下:

 <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>
Run Code Online (Sandbox Code Playgroud)

应用主题:

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your 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 and other stuff-->
    <item name="android:textColorSecondary">@color/textColorSecondary</item>
    <!-- Used to define what color preference categories titles will be-->
    <item name="colorAccent">@color/colorAccent</item>
    <!--overrides text color secondary for widgets and action mode     -->
    <item name="colorControlNormal">@color/colorControlNormal</item> …
Run Code Online (Sandbox Code Playgroud)

android styling

8
推荐指数
1
解决办法
2956
查看次数

标签 统计

android ×1

styling ×1