Color doesn't work
See original GitHub issueHello. 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:
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Or you may just be using this : ContextCompat.getColor(this, R.color.primaryColor)
@Toubap ContextCompat.getColor(this, R.color.primaryColor) seemed to work for me