android


Android Toolbar action Icons not completely white


I'm not sure why this is happening. When I have icons on the toolbar even though the resource files are completely white when they're added to the toolbar they seem to have some kind of slight transparency or they're just not white?
The icon on the right is how it looks on a device but the left is the resource image.
Toolbar Image
Code just in case I've done something wrong:
<android.support.v7.widget.Toolbar
android:id="#+id/detailToolbar"
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="#color/colorPrimary"
android:elevation="4dp"
android:theme="#style/ToolbarTheme">
</android.support.v7.widget.Toolbar>
<style name="ToolbarTheme" parent="Theme.AppCompat">
</style>
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="#+id/save"
android:icon="#drawable/ic_save_white"
android:title="Save Details"
app:showAsAction="always" />
</menu>
EDIT: Just in case someone else needs an answer to this question.
I was importing icons into Android studio via right click > New > Image Asset into my drawables folder, this seemed to be the issue.
Instead I copy and pasted the icon images into the drawables folder and then the icons reflected the true color.
edit this
<style name="ToolbarTheme" parent="Theme.AppCompat.Light.DarkActoinBar">
</style>

Related Links

Android mediaplayer mute
Android application AndroidRuntime
Android UnknownHostException when using HttpGet
Catch Javascript onclick events in an HTML page hosted in a WebView
How can I use ORMLite with SQLCipher together in Android?
Setting a Unique ID for Android Phone
How to get Purchased state of a managed productid in android in appbilling?
How do i adb pull ALL files of a folder present in SD Card
How to get String length [closed]
Good design pattern for dialogs in Android
passing data from an activity to BROADCAST receiver
Record audio while using the Voice Typing feature
Is there any way to bind to a live wallpaper service?
OpenGL ES 2.0 Multiple Programs or Multiple Shaders or what? How does it work?
Hiding the title of an actionbar doesn't work on older versions of Android (using ActionBarSherlock)
using preferences — my listview is empty (can't store data)

Categories

HOME
service-worker
shell
google-app-engine
httparty
time-complexity
pda
angular2-material
sublimetext
tivoli
nuget-package
android-json
azure-container-service
teechart
syntaxnet
32bit-64bit
frequency-distribution
flash-player
oledb
pimcore
aggregation
comparator
draft-js-plugins
game-theory
gpio
bioinformatics
sqsh
jmockit
simplecv
clickjacking
sammy.js
github3.py
fiware-cygnus
cd
diacritics
metawidget
typesafe-config
c9.io
skylink
portforwarding
linqpad
lpsolve
chronicle-map
placeholder
xmldocument
x++
servermanager
zenhub
payara-micro
magic-draw
oracleclient
skin
dt
libjpeg
smartfoxserver
usart
autosar
simevents
tracker-enabled-dbcontext
ellucian-scribe
aspen
jbase
decimalformat
lazybones
phonertc
zen-cart
ember-cli-rails
typemock
fail2ban
zxspectrum
dbaccess
nodelist
showdialog
boost-program-options
mruby
viewer
sip-server
cuba
mintty
file-not-found
qscrollarea
sbcl
modular
frameworkelementfactory
midlet
dajaxice
agility.js
lr
umra
lxr
filesystemobject
dojo-dnd
todos
application-planning
linfu-dynamicproxy
flvplayback
ifilter

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App