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

Paytm Integration not working android
Building Video Streaming App Using Native vs Hybrid Approach? [closed]
get all country then state then cities names in android
Implementation of Instant Chat [closed]
Get all placemarks from KML file Google Maps KML Importing Utility
How we increase Recyler View Item from 0-9 to Infinite?
Android Youtube Player custom control
How to use setX() and setY() of a TextView based on screen
Tensorflow Android support for videos
Firebase app invites return different onActivityResult for emulator and real device
Android TabHost Tabspec Count Down Timer
How do I modify the “build script” in Android Studio?
AWS SSL Certificates with old Android phones
How to settext in arraylist
Why is AnalogClock deprecated in android? [closed]
How to use firebase database from broadcastreceiver

Categories

HOME
phantom-dsl
prism
fuelux
twig
apache-spark-mllib
xbee
permissions
hugo
arangodb
drop-down-menu
distribution
xcodebuild
filechannel
libc
radgridview
3nf
fileserver
forgot-password
nodemcu
asciidoctor-pdf
pagespeed
joptionpane
strongname
draft-js-plugins
ckfinder
froala
licensing
has-and-belongs-to-many
dotspatial
gitlab-api
powershell-ise
dumpbin
git-squash
clickjacking
android-gridview
openerp-7
verifiable-c
chef-solo
ogc
azure-arm
oracle-service-bus
http-request
x++
httrack
fclose
manova
arq
context-switch
headless
dt
flyout
google-photos
phpwebsocket
uiactionsheet
cortex-m
qbxml
libvlc
sapi
linklabel
file-move
lazybones
extjs-grid
ember-cli-rails
qtwebengine
exceldatareader
variadic-templates
rapidsvn
contrast
entry-point
functional-java
jjaql
away3d
route-provider
stacky
swfobject
joomla3.1
tree-balancing
panda3d
fragmenttransaction
adobe-media-server
lambdaj
apache-whirr
easyb
message-passing
filesystemobject
wordprocessingml
software-lifecycle
java1.4
soappy

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