question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Color doesn't work

See original GitHub issue

Hello. I can’t change slide background color i have tried AppIntro and AppIntro2 My code:

public class MyIntro extends AppIntro {
    @Override
    public void init(Bundle savedInstanceState) {
        addSlide(AppIntroFragment.newInstance(getString(R.string.intro_title_main)
                , getString(R.string.intro_description_main), R.drawable.intro_image_main
                , R.color.colorAccent));
        showDoneButton(true);
        setFlowAnimation();
    }

where R.color.colorAccent is light blue

<color name="colorAccent">#2480b3</color>

manifest

<activity
            android:name=".activity.MyIntro"
            android:label="@string/app_name"
            android:theme="@style/Intro">

styles

<style name="Intro" parent="Theme.AppCompat.NoActionBar">
</style>

and the result: device-2015-10-12-002847

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Toubapcommented, Apr 19, 2016

Or you may just be using this : ContextCompat.getColor(this, R.color.primaryColor)

1reaction
bbarkecommented, Jun 11, 2016

@Toubap ContextCompat.getColor(this, R.color.primaryColor) seemed to work for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting color in a CSS class doesn't work - Stack Overflow
I can't set this CSS class, the color instruction doesn't work, but the text-shadow ...
Read more >
background-color doesn't work : r/css - Reddit
I starting css and I can't change the background color. I used background-color yet still no change.
Read more >
Custom color doesn't work - WordPress.org
Hi, I have assigned a background colour to my table, but on the front-end it does not work. The CSS code looks correct,...
Read more >
Why isn't Replace Color working? - Adobe Support Community
1 Correct answer. The closer to white or black that a color is, the less well replace color works. I would try another...
Read more >
Step 62 - Hex color doesn't work, I need help - HTML-CSS
Step 62 - Hex color doesn't work, I need help ... " For the second color argument, use a hex color code with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found