Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid getting wrong background color
    primarykey
    data
    text
    <p>This is my layout... in my project im using abs (ActionBar Sherlock) with Theme.Sherlock.Light.DarkActionBar.</p> <p>In some devices, like Galaxy S3 (GT-I9300) with 4.0.4 when I set white color, he is returning another color. Returns dark gray color. (#797979) I've tried to set @android:color/white, #ffffff, #ffffffff, create attr color #ffffff, and nothing.</p> <p>Im using this layout in ListView Adapter:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/lnlItem" android:layout_width="match_parent" android:layout_height="wrap_content" &gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_toLeftOf="@+id/chatUserImage" android:background="#ffffff" android:minHeight="70dp" android:padding="5dp" &gt; &lt;TextView android:id="@+id/chatMessage" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentTop="true" android:textColor="@android:color/black" /&gt; &lt;TextView android:id="@+id/chatMessageDate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:textColor="@android:color/darker_gray" android:textSize="12sp" /&gt; &lt;/RelativeLayout&gt; &lt;ImageView android:id="@+id/chatUserImage" android:layout_width="50dp" android:layout_height="50dp" android:layout_alignParentRight="true" android:background="#00000000" android:src="@android:drawable/ic_menu_gallery" tools:ignore="ContentDescription" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>And this is my Activity layout:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/chatFrame" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;TextView android:id="@+id/chatHeader" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@android:color/black" android:gravity="center" android:padding="5dp" android:textColor="@android:color/white" &gt; &lt;/TextView&gt; &lt;ListView android:id="@+id/chatListMessages" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@+id/chatSendMessage" android:layout_below="@+id/chatHeader" android:layout_marginBottom="5dp" android:layout_marginTop="5dp" android:cacheColorHint="@android:color/transparent" &gt; &lt;/ListView&gt; &lt;LinearLayout android:id="@+id/chatSendMessage" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:background="@drawable/chat_send_message" android:gravity="center_vertical" android:orientation="horizontal" android:padding="5dp" &gt; &lt;EditText android:id="@+id/chatEditSendMessage" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:gravity="top|left" android:inputType="textMultiLine" android:maxLines="3" android:minLines="1" android:scrollHorizontally="false" /&gt; &lt;ImageButton android:id="@+id/btnSendMessage" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/transparent" android:src="@android:drawable/btn_dialog" tools:ignore="ContentDescription" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload