Questions tagged [tint]
223 questions
20
votes
2 answers
Tint Navigation Icon in Toolbar
How to tint menu icons is already covered a few times, like here:
Toolbar icon tinting on Android
Additionally to this solution there is still the problem of the navigation icon.
Applying a Theme(Overlay) to your Toolbar just tints the text and the…

cwiesner
- 934
- 1
- 8
- 24
20
votes
2 answers
What is new in Drawable Tinting in Android L Developer Preview compared to previous version?
I am working of new Android L preview and now dealing with tinting concept on drawable.
I want to know if there is anything new regarding drawable tinting in Android L Developer Preview.
I read this this documentation which says:
The Android L…

BinaryGuy
- 407
- 1
- 5
- 13
19
votes
4 answers
Apply backgroundTint to background drawable for API 19
The backgroundTint is correctly applied on API 23, but not on API 19. How can I get the drawable tinted for API 19 and below?
18
votes
1 answer
DrawableCompat setTint tints all new Drawables with the same id
I have chat bubbles which I want to tint in some situations:
Drawable bubbleDrawable = ContextCompat.getDrawable(context, R.drawable.bg_chat_bubble);
if (tint) {
bubbleDrawable = DrawableCompat.wrap(bubbleDrawable);
…

shelll
- 3,234
- 3
- 33
- 67
17
votes
3 answers
Change between dark and light keyboard iOS7
In iOS7 we have both a dark and a light keyboard. Is it possible for me to change between these in my app by code?

jalmaas
- 908
- 8
- 17
16
votes
1 answer
Tint VectorDrawable inside Drawable Resource xml
i've had a drawable resource for a selectable Button/ImageView like this:
-
-
…

cwiesner
- 934
- 1
- 8
- 24
16
votes
5 answers
Apply tint to PreferenceActivity widgets with AppCompat v21
I'm using CheckboxPreference in a PreferenceActivity and an AppCompat theme from the v21 support library. As you already know, with this latest library widgets like checkboxes, editTexts, radio buttons etc are tinted with the secondary color defined…

devrocca
- 2,497
- 2
- 19
- 27
13
votes
2 answers
UIToolbar tint on iOS 4
just switched to iOS 4 on my iPhone 3GS and some of my apps broke.
One issue I had is that I had a UIToolbar with some buttons, tinted to pink, that worked well on the 3.1.3 OS. After upgrading to iOS 4, the toolbar was still tinted, but the buttons…

Oded Ben Dov
- 9,936
- 6
- 38
- 53
10
votes
4 answers
How to set tint color for ImageView loaded SVG image
I tried to load PNG image form drawable into ImageView, and set tint color for this ImageView with below code ⇒ it's working:
imageView1.setImageResource(R.drawable.pngFile);
imageView1.setColorFilter(getResources().getColor(R.color.colorAccent),…

Sonzero
- 141
- 2
- 7
9
votes
4 answers
jQuery: there is a way to apply colour (tint) to an image?
there is a way to colour (apply tint) an image using jQ or some plugs?
thank you

Dee
- 3,185
- 10
- 35
- 39
9
votes
7 answers
Android tint icon in FloatingActionButton
How to tint an icon resource image in a FloatingActionButton? I've tried favoriteFab.setColorFilter(R.color.yellow, PorterDuff.Mode.OVERLAY); but no success.

fab
- 790
- 6
- 10
8
votes
3 answers
iOS 8 Text Field Tint Color
In iOS 7, changing the 'tint color' attribute of a uitextfield would change the cursor color of that text field. In iOS 8, even when I change the global storyboard tint color, this does not occur (objective-c, still works in iOS 7). How do I fix…

Jack Solomon
- 880
- 1
- 8
- 19
7
votes
5 answers
How can I tint a sprite to white in XNA?
I don't think this is possible just using the color setting in SpriteBatch, so I'm trying to work out a simple shader that would take every pixel and make it white, while respecting the alpha value of the pixel.
The answer Joel Martinez gave looks…

Iain
- 9,432
- 11
- 47
- 64
7
votes
3 answers
UINavigationBar change Tint color with animation
Is it possible to change the tint with animation for a smoother effect?
This doesn't work for me:
[UIView beginAnimations:nil context:nil];
[self.navigationController.navigationBar setTintColor:[UIColor greenColor]];
[UIView commitAnimations];
I a…

Ondrej Rafaj
- 4,342
- 8
- 42
- 65
7
votes
1 answer
How can I reproduce Apple's iOS Tint-Color Formula for Toolbar/Button gradients?
We're looking to reproduce the way Apple applies a tint-color to their controls. We're developing a web-based product and thus have to reproduce the formula/application of the color ourselves.
Our analysis shows that its non-trivial and at the very…

ohadpr
- 977
- 1
- 8
- 16