textcolor Questions
5
Solved
I've google fews hours how to change my UISearchBar font size & color, but I cannot any documents related to it.
This is what I've done so far on swift 4:
searchBar = UISearchBar(frame: CGRe...
Vaunting asked 26/2, 2018 at 7:33
3
Following code will set gradient on textview (not background, but text itself). But I need to change angle of this gradient, how to do it?
Shader textShader = new LinearGradient(0, 0, 0, textView....
8
Solved
I want to change AlertDialog title color and background color without using custom layout. My requirement,
I tried below code, but can't work.
final CharSequence[] items = {" Visiting Card", ...
Tectonics asked 17/7, 2018 at 11:21
6
Solved
I want to make UILabel's text bold
infoLabel=[[UILabel alloc]initWithFrame:CGRectMake(90,150, 200, 30)];
[infoLabel setText:@"Drag 14 more Flavors"];
[infoLabel setBackgroundColor:[UIColor clearCo...
Concerted asked 5/1, 2011 at 9:38
17
Solved
Is there a way to use two, or even three font colors in a single label in iOS?
If the text "hello, how are you" were used as an example, the "hello," would be blue, and the "how are you" would be...
Holoblastic asked 1/1, 2015 at 5:20
6
Solved
I understand that the closed spinner is actually a View, I think. But I am guessing it has a TextView there somewhere to show the text. How do I get access to that TextView so I can change the text...
10
Solved
When I try setting the color of a UILabel to the color of another UILabel using the code
myLabel.textColor = otherLabel.textColor
It doesn't change the color. When I use this code, however,
my...
20
I want to display a string like this in a UILabel:
There are 5 results.
Where the number 5 is red in color and the rest of the string is black.
How can I do this in code?
Scarify asked 28/6, 2011 at 5:7
2
I have created my own android theme to change the look of the actionbar tabs. The problem is that textcolor selector seems to ignore state_pressed attribute, so the color of tab text is always the ...
Scantling asked 14/11, 2014 at 0:13
7
Solved
I just finished my C# console application code for a project and would like to add some color to my font. I would love to be able to use a custom color - orange. Is there any way to do this?
This ...
Pardo asked 29/10, 2011 at 5:53
17
Solved
I need to change the color of Cancel button text of UISearchBar in iOS7.
Normally UISearchBar Cancel button textColor is blue and I want to change textColor to redColor.
How can i change it?
Blowing asked 6/10, 2013 at 8:9
2
I hope I'm not duplicating any threads now but I can't find a good answer to my question.
I have more than five tabs so a more-tab automatically turns up. I've managed to change some of it's settin...
Alluvium asked 8/2, 2011 at 13:42
15
Solved
Multiple colours in an NSString or NSMutableStrings are not possible. So I've heard a little about the NSAttributedString which was introduced with the iPad SDK 3.2 (or around 3.2) and is available...
Cartelize asked 14/8, 2010 at 6:50
1
Solved
How can I make a espresso test with the color of the text?
Currently use hasTextColor():
onView(withId(R.id.editText)).check(matches(hasTextColor(Color.BLACK)));
But the error occurs:
android...
Acetylide asked 21/11, 2017 at 13:18
2
Solved
I want to change the text color of a CATextLayer.
This does not work
myTextLayer.textColor
since there is no such property. I also got no response by setting the foreground color
textLayer.fo...
Retarder asked 8/8, 2016 at 17:22
2
Solved
My code fragment is very small:
self.textField.textColor = color
This is called in response to user interaction. It has been working for years. On my iOS 10 device it still works. On my iOS 11 d...
Martica asked 15/10, 2017 at 0:36
8
Solved
On my index page, I want the h1 text color to be white and comes with shadow, but I don't want to change the default behavior the h1 on other pages. How can I achieve this?
Shopkeeper asked 22/6, 2012 at 18:50
5
Solved
How can i have a UILabel with two different colors for the font? I will have text in two different strings and i want to make text with first string as red and second as green. The length of both t...
Aoudad asked 17/10, 2010 at 8:40
8
Solved
5
Solved
I try to set UILabel with text of different colors programmatically using,
NSMutableAttributedString * string = [[NSMutableAttributedString alloc] initWithString:@"firstsecondthird"];
[string addA...
Jessicajessie asked 14/2, 2017 at 10:58
1
Solved
I tried to achieve this but I am only able to achieve to fill object (shape).
My requirement is to change text color along with shape filling.
Shape can be filled with percentage like till
10% to ...
Kamenskuralski asked 15/2, 2017 at 10:18
2
Ok, this is driving me bonkers. To skin my app, I set the following in my theme:
<item name="android:textColor">#FFFFFF</item>
All the text in the app turns white, unless I manually...
Revue asked 21/4, 2011 at 20:51
3
Solved
I have a UITableView and i would like to display the text of each row using different colors within the same line.
I've tried this code, trying to translate from Obj-C but i cannot have it working...
Pollen asked 17/9, 2014 at 13:49
3
Solved
I need to change text color when state change(pressed, focus)...
How to set the text color of a TextView using ColorsStateList?
4
Solved
For some reason I cannot seem to update the color of the text in my ListView items. I'm not sure exactly why this is happening, does anyone have an idea?
XML:
<RelativeLayout xmlns:android="ht...
© 2022 - 2024 — McMap. All rights reserved.