I have this xml code :
<item android:id="@+id/search_id" android:title="Search" app:showAsAction="always"> <bitmap android:src="@drawable/ic_search_black_24dp" android:tint="@color/colorAccent"> </bitmap> </item> <item android:id="@+id/shoppingcart_id" android:title="Shopping Cart" android:icon="@drawable/ic_shopping_cart_black_24dp" app:showAsAction="always"></item> they both are black icons but the first icon I want to change into red. but when I run my app, it doesn't show anything. Is it possible to change PNG file color from drawable resource just using XML without adding code in java?
thank you.