Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
koeckc opened this issue Jul 17, 2014 · 3 comments

Comments

@koeckc
Copy link

koeckc commented Jul 17, 2014

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
Copy link
Contributor

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
Copy link
Author

koeckc commented Jul 17, 2014

screenshot_21

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

@davidvavra
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants