avast / android-styled-dialogs

Backport of Material dialogs with easy-to-use API based on DialogFragment
Apache License 2.0
2.15k stars 450 forks source link

No resource found that matches the given name (at 'buttonBackgroundColorFocused' with value '@color/dialog_button_focused') #55

Closed koeckc closed 10 years ago

koeckc commented 10 years ago

Hello i want to include your Library in my project but i always get this error on compiling Im using a theme derived from AppCombat and i included the lib like this in build.gradle compile 'eu.inmite.android.lib:android-styled-dialogs:1.1.2@aar'

Then i followed the instructions from the readme with including a style like this:

<style name="DialogStyleLight.Custom">
    <!-- anything can be left out: -->
    <item name="titleTextColor">@color/dialog_title_text</item>
    <item name="titleSeparatorColor">@color/dialog_title_separator</item>
    <item name="messageTextColor">@color/dialog_message_text</item>
    <item name="buttonTextColor">@color/dialog_button_text</item>
    <item name="buttonSeparatorColor">@color/dialog_button_separator</item>
    <item name="buttonBackgroundColorNormal">@color/dialog_button_normal</item>
    <item name="buttonBackgroundColorPressed">@color/dialog_button_pressed</item>
    <item name="buttonBackgroundColorFocused">@color/dialog_button_focused</item>
    <item name="dialogBackground">@drawable/dialog_background</item>
</style>

Afterwards i cant build my project anymore. Do you have a hint what im doing wrong ? Im using recent versions of support library compile 'com.android.support:appcompat-v7:20.0.0' compile 'com.android.support:support-v4:20.0.+'

Do you have a hint for me ? thx c

davidvavra commented 10 years ago

Hi, did you sync gradle?

Are you using Android Studio? Can you attach screenshot so I can see what's red and what's not?

koeckc commented 10 years ago

screenshot_21

The Widget.AppCompat and Theme.AppCompat are red but that is not a problem on building the app

davidvavra commented 10 years ago

It looks like you have more build-related issues and it's not a fault of StyledDialogs library. Others have no problems.

Have a look into folder build/intermediates/exploded-aar. You should see all resources there.