Sujewan
Sujewan

Reputation: 1023

Android - White background color, Automatically change to another color

I created an android application. And dashboard layout have multiple fragment and background color is white.

In some places i am using custom colors. Sometimes that white background color, automatically change to my customize color. For an Ex:Background change White to Orange.

Is there any solution....

Upvotes: 0

Views: 1038

Answers (1)

Mateusz Jablonski
Mateusz Jablonski

Reputation: 1039

I had similar problems with colours. Sometimes worked just fine and sometimes the colour of random views was changed. It is some kind of leakage (didn't have time to search for it) and as a workaround I changed problematic colours to rectangle drawables like this, and this strange behaviour stopped:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle" >
    <solid android:color="@android:color/white" />
</shape>

Upvotes: 1

Related Questions