DO NOT USE THIS TAG. This tag does not currently have a single, well-defined meaning. It is often used in place of, or in conjunction with, [css]. It is also used on questions about the appearance of user interfaces and questions about source code formatting.
Questions tagged [styles]
9132 questions
956
votes
28 answers
How to set TextView textStyle such as bold, italic
How to set TextView style (bold or italic) within Java and without using the XML layout?
In other words, I need to write android:textStyle with Java.

JustMe
- 10,033
- 5
- 20
- 12
577
votes
20 answers
Is it possible to have multiple styles inside a TextView?
Is it possible to set multiple styles for different pieces of text inside a TextView?
For instance, I am setting the text as follows:
tv.setText(line1 + "\n" + line2 + "\n" + word1 + "\t" + word2 + "\t" + word3);
Is it possible to have a different…

Legend
- 113,822
- 119
- 272
- 400
439
votes
16 answers
How to bind inverse boolean properties in WPF?
What I have is an object that has an IsReadOnly property. If this property is true, I would like to set the IsEnabled property on a Button, ( for example ), to false.
I would like to believe that I can do it as easily as IsEnabled="{Binding…

Russ
- 12,312
- 20
- 59
- 78
289
votes
3 answers
Valid values for android:fontFamily and what they map to?
In the answer to this question the user lists values for android:fontFamily and 12 variants (see below). Where do these values come from? The documentation for android:fontFamily does not list this information in any place (I checked here, and…

Christopher Perry
- 38,891
- 43
- 145
- 187
266
votes
22 answers
How to change line color in EditText
I am creating an EditText in my layout xml file
But I want to change color line in EditText from Holo to (for example) red.
How that can be done?

Alex
- 2,723
- 2
- 13
- 6
224
votes
13 answers
How to manage Angular2 "expression has changed after it was checked" exception when a component property depends on current datetime
My component has styles that depend on current datetime. In my component I've got the following function.
private fontColor( dto : Dto ) : string {
// date d'exécution du dto
let dtoDate : Date = new Date( dto.LastExecution );
(...)
…

Anthony Brenelière
- 60,646
- 14
- 46
- 58
222
votes
11 answers
Override body style for content in an iframe
How can I control the background image and colour of a body element within an iframe? Note, the embedded body element has a class, and the iframe is of a page that is part of my site.
The reason I need this is that my site has a black background…

jd6699
- 2,257
- 2
- 14
- 6
194
votes
15 answers
Is it sometimes bad to use
?
Is it sometimes bad to use
tags? I ask because some of the first advice my development team gave me was this: Don't use
; instead, use styles. But why? Are there negative outcomes when using
tags?
tags? I ask because some of the first advice my development team gave me was this: Don't use
; instead, use styles. But why? Are there negative outcomes when using
tags?

pencilCake
- 51,323
- 85
- 226
- 363
190
votes
3 answers
Binding ConverterParameter
Is there a way I could do this in a Style: