开发者

Customizing Text in Android Edit Text

开发者 https://www.devze.com 2023-03-30 11:56 出处:网络
I am trying to create an EditText which allows users to specifically put in typef开发者_Python百科aces like bold, italic, underline to specific portions of the text. How should I actually have it code

I am trying to create an EditText which allows users to specifically put in typef开发者_Python百科aces like bold, italic, underline to specific portions of the text. How should I actually have it coded? How can properly save the changes then? Will it be something like in html with the tags?


Take a look at Spanned interface and android.text.style package.

This "Common Task" will be helpful too: Selecting, Highlighting, or Styling Portions of Text.

0

精彩评论

暂无评论...
验证码 换一张
取 消