Styling <blockquote> in Android TextView

Is it possible to change the style of the <blockquote>

content displayed in Android TextView

?

I am setting the text like this:

textView.setText(Html.fromHtml(someHtmlString));

      

In a tag, android:Theme.Light

this displays the blockboards as normal text, but with a thin blue vertical line along the left edge of the paragraph.


Study

I have checked the XML attributes forTextView

but cannot find any mention of blockquote style. I have also checked the source code of the theme I am using , but cannot find any likely sound attributes.


Desired style

Ideally, I would like to control how far the text is left out and apply some simple style like italics to the text in <blockquote>

.

Making the text italic can probably be done by inserting tags <i>

into all tags <blockquote>

before passing the text to Html.fromHtml()

, but that's not ideal.

+3
android html textview blockquote


source to share


No one has answered this question yet

Check out similar questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to persist android activity state by persisting instance state?
2097
Is there a way to run Python on Android?
1844
How to place text horizontally and vertically in a TextView?
597
Set TextView style (bold or italic)
565
Making a scrolling TextView on Android
524
Is it possible to have multiple styles inside a TextView?



All Articles
Loading...
X
Show
Funny
Dev
Pics