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.

Accent color not used on API < 21

See original GitHub issue

I use Version 24.1.1.0 and everything was tested on emulators.

Consider the following screenhots:

API 24

How it should be: API 24

API 16

Not colored correctly: API 16

The preference layout is as follows:

<ListPreference
    android:defaultValue="60"
    android:dependency="pref_news_notifications"
    android:entryValues="@array/news_notifications_interval_values"
    android:key="pref_news_notifications_interval"
    android:summary="%s"
    android:title="@string/preference_news_notifications_interval_title" />

I don’t know if this is really a bug, but I thought you may want to take a look at it.

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Gericopcommented, Aug 18, 2016

v24.2.0.0 has been released, update your gradle file:

compile 'com.takisoft.fix:preference-v7:24.2.0.0'
1reaction
Gericopcommented, Jul 29, 2016

Okay, I found something interesting about the default implementation. API 17 displays the correct colors, while API 19 doesn’t, and API 21 is correct again. Seriously Google, just WTF?! alertdialog_wtf

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android v21 Theme.Appcompat color accent is ignored, no ...
About the accent color. You are using a AppCompat theme so you should remove Android from the namespace inside your theme.
Read more >
Specifying your app's color scheme - Apple Developer
Set a global accent color for your app by using asset catalogs. ... Use an accent color to quickly create a unifying color...
Read more >
R.color - Android Developers
This constant was deprecated in API level 28. Use a text color from your theme instead. int, system_accent1_0. Lightest shade of the accent...
Read more >
How to get system accent color? : r/androiddev - Reddit
The DeviceDefault text appears to work! However, the color always returns the default color #03DAC6 (aqua color). I set the background color ......
Read more >
Colors - Universal Theme - Oracle APEX
General colors are used for adding color accents to several application components such as Charts, Cards, and and more. There are 15 primary...
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