tint Questions
5
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.setColorFi...
Cloakroom asked 15/5, 2017 at 6:13
30
Solved
Need to set tint for an image view... I am using it the following way:
imageView.setColorFilter(R.color.blue,android.graphics.PorterDuff.Mode.MULTIPLY);
But it doesn't change...
3
Solved
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...
Corbel asked 28/8, 2017 at 14:7
2
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...
4
Solved
How would one go about tinting a Bitmap to a solid color, effectively replacing all pixels that have an alpha > 0 to a given RGB value? In addition how to do the same thing, but keeping the alpha f...
5
Solved
I searched everywhere but didn't find the solution. I have image 1. How can I programatically tint them with gradient to get images 2 and 3? Here are those images:
Tints that I applied to them v...
Rhyner asked 11/11, 2011 at 18:8
6
Solved
I have a background image set up through CSS.
html {
background-image: url('../img/cello.jpg');
background-attachment: fixed;
background-size: 100%;
}
I plan on having a different background ima...
Donegan asked 24/8, 2012 at 15:53
9
Solved
When I use drawables from the AppCompat library for my Toolbar menu items the tinting works as expected. Like this:
<item
android:id="@+id/action_clear"
android:icon="@drawable/abc_ic_clear_m...
Barnhill asked 6/11, 2014 at 12:56
16
Solved
I have a Button in my Activity, and I'd like it to have my theme's accent color.
Instead of making my own drawables like we had to do pre-Lollipop, naturally I'd like to use the new backgroundTint ...
Touchy asked 2/1, 2015 at 0:0
6
I'm reading this article about material design. In the list of colors, there is a number next to each color that seems to darken the color as its value goes up.
What does this number means, more...
Heavyhearted asked 18/8, 2015 at 11:12
3
No longer relevant!
This issue is related to a bug in old Android 4.x build. android:tint should now work correctly as in the
example below
I'm trying to apply tint to bitmap inside < layer-li...
10
Solved
I have an ImageButton in my app and I need to change the tint of the image when the button is pressed/focused. I have the ImageButton set to get its src from an XML file which as follows:
<?xml...
Kindness asked 11/6, 2010 at 17:45
8
Solved
I'm trying to tint an image prior to Android API level 21. I've successfully tinted items using:
<android:tint="@color/red"/>
However, I can't seem to figure out how to do this through cod...
Whithersoever asked 6/11, 2014 at 19:55
5
Solved
So I have seen quite a few ways to darken images with CSS, including ones with rounded corners, but my problem is different.
Let's say I have an .png image that looks like a little dog (just go wi...
7
Solved
How to tint an icon resource image in a FloatingActionButton? I've tried favoriteFab.setColorFilter(R.color.yellow, PorterDuff.Mode.OVERLAY); but no success.
Matrilateral asked 17/8, 2015 at 10:11
4
Solved
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?
<Button
android:layout_width="40dp"
android:layout_height="40dp"...
Cabretta asked 5/12, 2015 at 16:39
5
Solved
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...
13
Solved
I would like to tint an image with a color reference. The results should look like the Multiply blending mode in Photoshop, where whites would be replaced with tint:
I will be changing the color...
Bedside asked 12/7, 2009 at 23:38
3
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 (...
Alcyone asked 2/10, 2014 at 9:40
3
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 ...
Razz asked 5/5, 2017 at 9:8
3
Solved
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?
1
i've had a drawable resource for a selectable Button/ImageView like this:
<selector>
<item android:state_selected="true">
<layer-list>
<item>
<shape android:shape="ov...
Kalsomine asked 20/6, 2017 at 9:57
4
Solved
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.
...
Bobbyebobbysocks asked 7/4, 2011 at 13:12
5
Solved
I have a custom UIButton which is a cloud, transparent black and white .png file, with no down state, just one image. When tapping and holding the finger over it, it turns dark grey. I'm trying to ...
Apogamy asked 12/4, 2013 at 7:58
1
Solved
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....
Twosided asked 29/3, 2016 at 9:8
1 Next >
© 2022 - 2024 — McMap. All rights reserved.