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.

hi, awesome stuff you made.

not an expert on Android, but i’m trying to use this to style the crash activity, mainly its action bar colors but with no success

<?xml version="1.0" encoding="utf-8"?>
<resources>

    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">@color/primary</item>
        <item name="colorPrimaryDark">@color/primary_dark</item>
        <item name="colorAccent">@color/accent</item>
    </style>

    <style name="CustomActivityOnCrashTheme" parent="AppTheme" />

</resources>

my app’s activity action bar is styled in red colors, whoever the crash activity action bar is in blue

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
mnive93commented, Aug 16, 2016

Hello, There seems to be an issue with colorPrimary and colorPrimaryDark. @chenyuan In your colors.xml override these colors

 <color name="customactivityoncrash_primary">Your color primary</color>
 <color name="customactivityoncrash_primary_dark">Your color primary dark</color>

In your themes.xml do this

<style name="CustomActivityOnCrashTheme" parent="AppTheme" >
        <item name="android:label">Your app name</item>
        <item name="colorPrimary">@color/customactivityoncrash_primary</item>
        <item name="colorPrimaryDark">@color/customactivityoncrash_primary_dark</item>
    </style>
1reaction
Erezacommented, May 27, 2017

Hi, latest version is now available on Maven Central. Let me know if you have any other issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stylish - Custom themes for any website
With hundreds of thousands of themes, skins & free backgrounds, you can customize any website with your own color scheme in a click....
Read more >
Customize a theme - Shopify Developers
As a theme developer, you can customize themes for Shopify merchants. These customizations might range from small tweaks to complete redesigns.
Read more >
Create your own theme in PowerPoint - Microsoft Support
To make a custom theme, start with a built-in Office theme and modify it by changing any of the colors, fonts, or effects:...
Read more >
Create a new custom theme with CSS alone - Drupal
In Drupal 6 and Drupal 7, there are many improvements in core that make it easy for CSS web designers to create themes...
Read more >
How to Customize Your WordPress Theme (5 Step-by ... - Kinsta
Best Practices for Customizing WordPress Themes · If Possible, Customize Without Editing Code · Use a Local Development Site to Make Your Changes....
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