space between text and underline [duplicate]
Either use a different font or use a border-bottom instead so that you can control the space with padding-bottom.
Either use a different font or use a border-bottom instead so that you can control the space with padding-bottom.
Update your support library and in XML use Please add this style to your Spinner style=”@style/Base.Widget.AppCompat.Spinner.Underlined”
It’s a new feature of IntelliJ IDEA 2018.2: Underlining reassigned local variables and reassigned parameters IntelliJ IDEA now underlines reassigned local variables and reassigned parameters, by default. The attributes for all the languages supporting this feature, which for now include Java and Groovy, can be changed in Preferences/Settings | Editor | Color Scheme | Language … Read more
2020 Use text-underline-offset! 2012 The only way to do that is to use a border instead of an underline. Underlines are notoriously inflexible. a { border-bottom: 1px solid currentColor; /* Or whatever color you want */ text-decoration: none; } Here’s a demo. If that’s not enough space, you can easily add more — if it’s … Read more
You should use the property “TextDecorations” of the TextBlock. Like that: <TextBlock Text=”H” TextDecorations=”Underline”/>
Add a style with the attribute text-decoration:none;: There are a number of different ways of doing this. Inline style: <a href=”https://stackoverflow.com/questions/12528316/xxx.html” style=”text-decoration:none;”>goto this link</a> Inline stylesheet: <html> <head> <style type=”text/css”> a { text-decoration:none; } </style> </head> <body> <a href=”https://stackoverflow.com/questions/12528316/xxx.html”>goto this link</a> </body> </html> External stylesheet: <html> <head> <link rel=”Stylesheet” href=”https://stackoverflow.com/questions/12528316/stylesheet.css” /> </head> <body> <a href=”https://stackoverflow.com/questions/12528316/xxx.html”>goto … Read more
You may subclass from UILabel and override drawRect method: – (void)drawRect:(CGRect)rect { CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextSetRGBStrokeColor(ctx, 207.0f/255.0f, 91.0f/255.0f, 44.0f/255.0f, 1.0f); // RGBA CGContextSetLineWidth(ctx, 1.0f); CGContextMoveToPoint(ctx, 0, self.bounds.size.height – 1); CGContextAddLineToPoint(ctx, self.bounds.size.width, self.bounds.size.height – 1); CGContextStrokePath(ctx); [super drawRect:rect]; } UPD: As of iOS 6 Apple added NSAttributedString support for UILabel, so now it’s much easier … Read more
You can do it in code by finding and replacing the URLSpan instances with versions that don’t underline. After you call Linkify.addLinks(), call the function stripUnderlines() pasted below on each of your TextViews: private void stripUnderlines(TextView textView) { Spannable s = new SpannableString(textView.getText()); URLSpan[] spans = s.getSpans(0, s.length(), URLSpan.class); for (URLSpan span: spans) { int … Read more
It’s impossible without CSS. In fact, the <u> tag is simply adding text-decoration:underline to the text with the browser’s built-in CSS. Here’s what you can do: <html> <head> <!– Other head stuff here, like title or meta –> <style type=”text/css”> u { border-bottom: 1px dotted #000; text-decoration: none; } </style> </head> <!– Body, content here … Read more
Have you checked Tools→Options…→Text Editor→C#→Advanced→Underline errors in the editor? I usually like to reset my settings after messing around with plugins, as they tend to mess with settings: Tools→Import and Export Settings…→Reset all settings.