Pixplicity / gene-rate

Generate a better rating for your Android app
Apache License 2.0
67 stars 17 forks source link

Styling issues with Androidx material design lib #28

Open wezley98 opened 5 years ago

wezley98 commented 5 years ago

Can you add a public method to allow us to overrider the snackbar layout background colour to resolve the issue seen below please?

Following code is used to display:

Rate.Builder(this)
            .setSnackBarParent(root_layout)
            .setFeedbackAction(Uri.parse(Constants.EMAIL_ADDRESS))
            .build()
            .apply {
                count()
                showRequest()
            }

screenshot_1547671560

mlagerberg commented 5 years ago

Hi, I'll add a method, as I can see how that would be a useful feature for many people. For the time being, you could probably get what you need by tweaking your theme or trying this:

wezley98 commented 5 years ago

Thanks, I will take a look and report back if this works.

wezley98 commented 5 years ago

Setting setLightTheme(false) and adding <color name="design_snackbar_background_color" tools:override="true">#ff9900</color> as suggested above has no effect.

screenshot_1548334499

wezley98 commented 5 years ago

also setLightTheme(true) has the following (Notice the give feedback button text is wrong)

screenshot_1548334682

wezley98 commented 5 years ago

@mlagerberg any progress with this, or should I raise a pull request?

m-i-n-a-r commented 4 years ago

I'm having the same layout problems. In my case, every button in the dialog has a background (colorPrimary), but the feedback button doesn't look good since it's placed to the right edge of the dialog. This library needs a refresh!