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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:53:09+00:00 2026-06-01T13:53:09+00:00

Is it possible to have a TextView object containing text of two sizes? We

  • 0

Is it possible to have a TextView object containing text of two sizes?

We can change the color of text content using single TextView object using textViewObj.setText(Html.fromHtml()); method. But is it possible to have text of two sizes in the single TextView object like below

like this.

What I am getting is shown below. I have tried a lot but the text is of same size.

like this

  • 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-01T13:53:11+00:00Added an answer on June 1, 2026 at 1:53 pm

    I have checked with Editext.Then i came to know that Html.fromHtml() does not support <font> tag.I use this code

    EditText text = (EditText) findViewById(R.id.title);
     text.setText(Html
                .fromHtml("<html><h3>hello</h3><h1>hello</h1>"
                        + "<p><font size=\"5\">Font</font><font 
                                            size=\"10\">size</font>"
                        + "</p></html>"));
    

    It show different size text hello and hello but in two different line.But <font> tag value does not change any thing

    enter image description here

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

Sidebar

Related Questions

I have a TextView, and I need to change a color for a 1
I know how to change text attributes and color for a TextView , but
Is it possible have two projects with the same name in flex builder? Here
Is it possible to have growing files on amazon s3? That is, can i
Possible Duplicate: Is it possible to have multiple styles inside a TextView? I want
I want to define different colors in single TextView like below: <font color=yellow>Hi </font><font
Hey, Is it possible to specify a textview to have 25 characters in a
Is it possible to display complex HTML content inside TextView ? My HTML is
I have a custom textview that is capable of rotating the text inside. Question:
Possible Duplicate: Is it possible to have multiple styles inside a TextView? i wonder

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.