Questions tagged [tint]
223 questions
7
votes
3 answers
Error inflating ImageView / ImageButton with ColorStateList tint value
Using an ImageView / ImageButton (AppCompatImageView / AppCompatImageButton) in conjunction with a style attribute of android:tint which makes use of a ColorStateList resource works fine on >= API 21, but throws an InflateException on API <…

Matthew Trout
- 709
- 5
- 20
7
votes
1 answer
Xcode 6 search bar tint clear color becomes black?
I am using the Xcode 6 GM. Adding a search bar with default settings like this
Then i changed the bar tint to "Clear Color" in the attributes inspector, then it becomes this
Back to Xcode 5.1, The same bar tint color change looks more intuitive as…

marsant
- 1,088
- 13
- 30
6
votes
2 answers
Change the navigation bar tint using Xcode
I have been looking on this site and on other how to set the navigation bar tint change, I have seen examples but is not quite what I need so any help will be appreciated.
on my app delegate I have:
@synthesize window;
@synthesize…

Derek
- 175
- 1
- 4
- 16
6
votes
2 answers
How can I change the global tint color programmatically?
My project needs to switch between 2 different global tint values. How can I do this programmatically?

jimbob
- 3,288
- 11
- 45
- 70
6
votes
2 answers
Set SpriteBatch color (for tinting) affects all drawing
I created a AnimatedSprite class, that draw a specific TextureRegion. Sometimes I need a tint color effect, so I set (this.color is a Color field of my AnimatedSprite):
super.draw(batch,…

Luke Vo
- 17,859
- 21
- 105
- 181
5
votes
3 answers
OpenGL ES: How to tint texture with color
I have texture with alpha. And I want to tint it with some color, so it will be colored depending on color alpha value, but overal opacity will be defined only by texture alpha.
This is similar to multi-texturing but with color instead of second…

brigadir
- 6,874
- 6
- 46
- 81
5
votes
2 answers
Wrong AccentColor showing, color ignored
I added a non-blue color named AccentColor to my iOS app’s assets catalogue. When running my app the tint color is default blue.
The “Global Accent Color Name” in build settings is correctly set to “AccentColor”. Do I need to set anything else? What…

Jane Trifels
- 115
- 1
- 7
5
votes
4 answers
Color of UIToolbar not changing
I have created a UIToolbar. I am trying to give it black color using:
toolbar.barStyle = UIBarStyleBlackOpaque;
or
toolbar's background property. But its color does not change in either case.
How can I change it?

Ali
- 1,975
- 5
- 36
- 55
5
votes
2 answers
Change tint color UIAlertController iOS9
I am not sure that anyone has encountered such kind of a behavior or not but iOS9 is making my UIAlertController tint to inherit from the main window. Is there any specific way something like UIAppearance that can help and resolve the issue.…

Akhilesh Sharma
- 1,580
- 1
- 17
- 29
5
votes
1 answer
DrawableCompat.unwrap is not working pre Lollipop
I'm using DrawableCompat.wrap to set tint on drawables in pre Lollipop and it's working fine.
DrawableCompat.unwrap is not working pre Lollipop.
I can't get the original drawable before the tint.
For example:
if (v.isSelected()){
…

user1787773
- 888
- 1
- 11
- 19
5
votes
0 answers
Desaturate a live UIView layer (not a UIImageView)
I'm wondering what would be the best way to desaturate a UIView—particularly, a UISliderView with custom appearance applied to it. In iOS 7, the standard controls fade out their tint colors when another view appears over them (for example, a share…

Jacob Pritchett
- 380
- 1
- 5
- 14
5
votes
5 answers
CSS equivalent for Text Tint
I'm trying to export files from Adobe InDesign to basic HTML + CSS.
A user can select some text and change the text colour. Using the InDesign SDK I can fetch the RGB values for that colour and in the CSS file declare color: rgb(R,G,B) which works…

divyanshm
- 6,600
- 7
- 43
- 72
5
votes
1 answer
Tinting Image in Java improvement
I looked for an easy way to tint an image in Java but I found nothing that suited my needs. I went to the following solution:
First create a new Image that serves as a copy of the Image I want to tint, then I create a second Image that is a…

salbeira
- 2,375
- 5
- 26
- 40
4
votes
1 answer
Xamarin iOS Image Tint Color
I want to use an template image which is black and use the tintColor of this image to set the color and to have only one image.
Then I put template image in asset
And I try to change the color by :
object.TintColor = UIColor.Blue;
But it doesn't…
user7752337
4
votes
1 answer
How to set tint color for setCompoundDrawablesWithIntrinsicBounds?
I have a tab layout in which i am setting the text and vector image like this:
TextView tab2 = (TextView) LayoutInflater.from(this).inflate(R.layout.custom_tab, null);
tab2.setText("OFFER");
…

bhaskar
- 991
- 1
- 15
- 37