I'm having issues displaying text on Jelly Bean 4.1 and 4.2 devices. This is a screenshot from my app when you open it for the first time. Nothing has been touched.

Emulator screenshots 4.1 to 4.3

As you can see 4.1 and 4.2 is not displaying any text. I'm not using a custom font or anything like that. Here's my xml for the TextView:

<TextView
    android:text="test"
    android:layout_toLeftOf="@+id/card_days_view"
    android:layout_marginTop="3dp"
    android:layout_marginLeft="10dp"
    android:layout_marginRight="10dp"
    android:id="@+id/textPrim"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:fontFamily="sans-serif-condensed"
    android:textColor="#393939"
    android:maxLines="1"
    android:singleLine="true"
    android:ellipsize="end"
    android:layout_marginBottom="-6dp"
    android:textSize="36sp" />

What could be the problem? Has anyone else had this issue? I tried googling a bit but nothing came up. Any help is appreciated!

有帮助吗?

解决方案

Have you tried to debug using the "Hierarchy View" - Perspective in Eclipse? Usually this helps a lot, as you can read the layout properties determined during rendering.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top