Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Setting header color of app in overview (recent apps) screen

$
0
0

I haven't tried this yet .. but it should work.

You can do it manually by modifying the MainActivity.java file and creating a onResume() function and adding the following code to it:

TaskDescription tDesc = new TaskDescription(mTitle, mIcon, mColor);
MainActivity.setTaskDescription(tDesc);

Note that you have to assign values to all the variables used, and probably add a color to your resources XML files to be used.

Also backup your modified files so you can restore them at any time if your ionic build/run android commands ever reset those files for you.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>