사용자 정의 색상 세트를 만들어 테마 전체에서 추가로 참조하려고합니다. 드로어 블에서 색상 속성을 참조 할 수 없습니다.
나는 비슷한 포스트 here를 발견하고 그 단계에 따라, 나는 사용자 정의 색상으로holo_blue_dark
을 정의하기 위해 노력하고있어 :
고해상도 \ 값 \ attrs.xml이
<attr name="holo_blue_dark" format="reference|color" />
고해상도 \ 값 \ styles.xml
<style name="AppTheme.Dark" parent="android:Theme.Holo.Light.DarkActionBar">
<item name="holo_blue_dark">@color/red</item>
</style>
입술 \ 값 \ colors.xml
<color name="holo_blue_dark">#FF33B5E5</color>
나는 항상 Android Studio 0.8.2에서 Failure [INSTALL_FAILED_THEME_AAPT_ERROR]
을 얻습니다. 그래서 나는 뭔가를 놓치고 있어야합니다.
시도 @ color/theme_accent –
작동하지 않습니다. 이미 사용하고 있습니다. – Mathieu