mardi 12 mai 2015

TextView background black only on some devices

On Galaxy S2 & S3's, my textview's background color is black while on every other device it's transparent, which is what I want. How can I fix it so the textview is transparent on all devices?

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://ift.tt/nIICcg"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <TextView
        android:id="@+id/desc"
        android:layout_width="fill_parent"
        android:layout_height="40dip"
        android:layout_alignParentRight="true"
        android:layout_below="@+id/title"
        android:background="@drawable/descshape02"
        android:ellipsize="marquee"
        android:fadingEdge="horizontal"
        android:focusable="true"
        android:focusableInTouchMode="true"
        android:lines="1"
        android:marqueeRepeatLimit="marquee_forever"
        android:paddingLeft="7dip"
        android:paddingRight="7dip"
        android:paddingTop="10dip"
        android:singleLine="true"
        android:shadowColor="#000000"
        android:shadowDx="0"
        android:shadowDy="0"
        android:shadowRadius="5"
        android:textColor="#FFFFFF"
        android:textSize="15dip" >

        <requestFocus />
    </TextView>

</RelativeLayout>

And descshape02.xml -

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://ift.tt/nIICcg"
    android:shape="rectangle" >

    <corners
        android:bottomLeftRadius="0dp"
        android:bottomRightRadius="0dp"
        android:topLeftRadius="0dp"
        android:topRightRadius="0dp" />

    <gradient
        android:angle="90"
        android:endColor="#070805"
        android:startColor="#B8833F"
        android:type="linear" />

    <padding
        android:bottom="0dp"
        android:left="0dp"
        android:right="0dp"
        android:top="0dp" />

    <size
        android:height="30dp"
        android:width="270dp" />

    <stroke
        android:width="1dp"
        android:color="#877B10" />

</shape>

Aucun commentaire:

Enregistrer un commentaire