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 7632615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:40:15+00:00 2026-05-31T06:40:15+00:00

i am creating an application which give options to write articles and submit. I

  • 0

i am creating an application which give options to write articles and submit.

I want to give all html options to user so that user can make part of text bold,italic,underlined etc.
i googled but not found that much suitable options or any html tool for android.

looking for suggestions.

  • 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-05-31T06:40:17+00:00Added an answer on May 31, 2026 at 6:40 am

    You can use something like below for this :

    Here textDisplayedBottom is a TextView.

    actualStringToDisplay="font COLOR=\"RED\"><b>"+yourString</b></font>"; 
    textDisplayedBottom.setText(Html.fromHtml(actualStringToDisplay));
    

    Hope this helps.

    EDIT 1: For EditText

    For editext providing options for bold italic underline you can always use Spannable to achieve it

    // Get our EditText object.
    EditText vw = (EditText)findViewById(R.id.text);
    
    // Set the EditText's 
    text.vw.setText("Italic, highlighted, bold.");
    
    // If this were just a TextView, we could do:
    // vw.setText("Italic, highlighted, bold.", TextView.BufferType.SPANNABLE);
    // to force it to use Spannable storage so styles can be attached.
    // Or we could specify that in the XML.
    // Get the EditText's internal text storage
    
    Spannable str = vw.getText();
    
    // Create our span sections, and assign a format to each.
    
    str.setSpan(new StyleSpan(android.graphics.Typeface.ITALIC), 0, 7,Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
    str.setSpan(new BackgroundColorSpan(0xFFFFFF00), 8, 19, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
    str.setSpan(new StyleSpan(android.graphics.Typeface.BOLD), 21, str.length() - 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
    

    The details you can find here

    http://developer.android.com/resources/faq/commontasks.html#selectingtext

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating Facebook application which get insights for user's page for multiple metric.
I am creating one application in which i am using jsp/servlet.. I want to
I have a WinForm application which is generating CSV files. I give the user
We have an application that basically archives files and we give the user the
I am creating a Java application which performs URL search for site: http://www.alexa.com/topsites/category User
I am creating an application in which we can edit the content. Now this
I have custom view in my application which can be scrolled by the user.
I'm creating an application which communicates with the device via FT2232H USB/RS232 converter. For
I am creating an application which tracks the users location using GPS, stores the
I am creating an application which involves so many web-service calls. I am using

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.