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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:58:22+00:00 2026-05-29T22:58:22+00:00

Working in Eclipse, I am trying to put some italics text onto a layout.

  • 0

Working in Eclipse, I am trying to put some italics text onto a layout. The problem is, that when I am setting
android:textStyle="italic", the text disappears. (The height of content becomes 0 and the whole TextView becomes invisible.) Bold works OK. I have tried every typeface, but the result is the same.

On the device it shows itself in italics OK. But the layout is very complicated and its design without seeing it becomes very complicated, too.

Here is the TextView

     <TextView
          android:id="@+id/smallEpgNextProgramTime"
          android:layout_width="200dp"
          android:layout_height="wrap_content"
          android:maxLines="1"
          android:ellipsize="end"
          android:layout_margin="10dp"
          android:gravity="left|top"
          android:textSize="35dp"
          android:typeface="monospace"
          android:textStyle="italic"
          android:text="12:00-13:11"
    />      

Android version is 2.3.3. Eclipse version is 2.6.

It is even worse. If I leave italics there, after some changes of layout view to graphics and back to text, Eclipse works slower and slower and hangs up the PC. So, I have to put it as “normal” in layout and to set textStyle by code. A bad bug it is!

  • 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-29T22:58:23+00:00Added an answer on May 29, 2026 at 10:58 pm

    I think its an android platform issue.

    Look at Issue 22867: Incorrect layout preview when ITALIC text style used

    It doesn’t show up on the layout’s graphical representation but works correctly when you build and run the app.

    Update:
    If you want to preview for designing xml layout then just use

    android:typeface="serif"
    

    In this android:textStyle="italic" works. And text will displayed in italic style in graphical layout editor.

    Its only works for this serif typeface.

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

Sidebar

Related Questions

I'm working with Eclipse and ClearCase and we're facing the problem that there's no
I am trying to read a text file using fscanf.I am working in eclipse
I am working on Android (with Eclipse and SDK) trying to stream video into
I'm trying to get 'hello world' working on the Android SDK with Eclipse. I'm
I'm working with Android currently, coding in Eclipse. I'm trying to set an image
I'm trying to get the Boost library working in my C++ projects in Eclipse.
I'm working with eclipse, android 3.2. and a virtual machine running android x86. (v3.2)
I'm trying to transfer everything I'm working on in one eclipse JEE6 project with
I'm working on an android app that has to send and receive information from
I'm trying to get Eclipse CDT (64 bit eclipse) working on Windows 7 with

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.