Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Spannable不思議なことに、Androidの目的は何ですか。char配列では不十分ですか?
Spannable
ASpannableを使用すると、太字、斜体、...などのフォーマット情報を文字のサブシーケンス(「スパン」、つまり名前)に付加できます。「リッチテキスト」を表現したいときにいつでも使用できます。
このHtmlクラスは、そのようなテキストを作成する簡単な方法を提供します。次に例を示します。
Html
Html.fromHtml("Text with <b>bold</b> and <em>italic</em>.")