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


source to share





All Articles