Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8043763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:00:50+00:00 2026-06-05T05:00:50+00:00

when ever I set a span in a charsequence, then set the text in

  • 0

when ever I set a span in a charsequence, then set the text in a text view its fine, it comes out right. I am using this

Ssb.setSpan(new StyleSpan(Typeface.ITALIC), start, end, 1);

Then set the text of the TextView.

But when I get the text from the text view and then get the text from it using tv.getText(); it returns the CharSequence expected but when I set the span somewhere else in the cs the other span when the text is set it’s not there.

Im sorry for lack of code. I have no proper internet access at home so im posting this from my phone.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:00:51+00:00Added an answer on June 5, 2026 at 5:00 am

    try this

    Spannable mSpannable = textview.getText(); // will hold old spans.
    mSpannable.setSpan(new StyleSpan(Typeface.ITALIC), start, end, 1); // do some new span
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After setting up TemplaVoila like ever i end up in this view. I set
how the set the text area always scroll down . its default the scroll
I'm writing a (ever larger) set of unit tests using Coffeescript and node.js. I
Ever since I started programming this has been something I have been curious about.
I'm having trouble figuring out how to set indexers in C# with Moq. The
How set image in button when ever click the button image show me that
I have a timer set up and it gets called when ever the player
I'm trying to set up my local development environment, to which i'm using the
I am trying to set up pub-sub between 1 publisher and multiple subscribers using
I'm using jQuery Mobile (jQM) and Knockout.js (ko) to develop an application. In this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.