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

ProgressDialogFragment cannot set the theme #14

Closed jjalonso closed 11 years ago

jjalonso commented 11 years ago

Hello.

I dont know if really is a issue, but im using your library and i have the theme declared, is working fine for a custom dialog.

In my theme active:

<item name="sdlDialogStyle">@style/Ruby.Dialog</item>

and in styles XML

<style name="Ruby.Dialog" parent="DialogStyleLight">
    <item name="titleTextColor">@color/background_ruby</item>
    <item name="titleSeparatorColor">@color/background_ruby</item>
    <item name="messageTextColor">@color/foreground_ruby_inverse</item>
    <item name="buttonTextColor">@color/foreground_ruby_inverse</item>
    <item name="buttonSeparatorColor">@color/divider_ruby</item>
    <item name="buttonBackgroundColorPressed">@color/background_ruby</item>
    <item name="buttonBackgroundColorFocused">@color/background_ruby</item>
</style>

Now i setup a simple Progress BUT the text dont take the style from styles.

        ProgressDialogFragment.createBuilder(this, getSupportFragmentManager())
                .setMessage(R.string.loading)
                .show();

The text color (String loading) is WHITE and must be foreground_ruby_inverse (BLACK) like my first dialog.

Thanks!

davidvavra commented 11 years ago

How do you assign Ruby.Dialog style? Post here part of your app theme.

jjalonso commented 11 years ago

Just updated the post.

And repeat my self... the theme is working fine for a custom dialog using your lib. but NOT for a ProgressDialogFragment

tomas-vondracek commented 11 years ago

that's my fault. i'll fix that for next release

jjalonso commented 11 years ago

Ok! thanks you!, My project is waiting :P

2013/9/16 Tomas Vondracek notifications@github.com

that's my fault. i'll fix that for next release

— Reply to this email directly or view it on GitHubhttps://github.com/inmite/android-styled-dialogs/issues/14#issuecomment-24520735 .

         Descargala en Google

Playhttps://play.google.com/store/apps/details?id=com.rocktaps.climatip&hl=es Twitter @Climatip https://twitter.com/Climatip

tomas-vondracek commented 11 years ago

It's fixed in master, thanks.