简体   繁体   中英

Pass EditText Value to Another Activity with Same Style in Android

I am having an editext with the text " This is a BOLD Text " and " This is a ITALIC Text "

and I am going to pass this edittext value to another activity with same text

In the second activity I am having an TextView, if I display a edittext value in to the text view I am getting like this

"This is a BOLD Text" and "This is a ITALIC Text"

How to pass the edittext value with same style

Can pass text in html format like:

textView.setText(Html.fromHtml(" ")); 粗体 ”))); or textView.setText(Html.fromHtml(" This is a ITALIC Text "));

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM