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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:40:11+00:00 2026-06-04T15:40:11+00:00

For a splashscreen I use an image which contains a white background (pure white

  • 0

For a splashscreen I use an image which contains a white background (pure white – checked in Photoshop). For some reason it shows a slight green bg vs. the activity’s default white bg – as marked in the screenshot. Only in some devices, like the

ImageView graphic shows now white background despite the image uses white

I add this as single view in a frame layout to the activity:

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

<ImageView
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:scaleType="fitCenter"
    android:src="@drawable/splashscreen" />

</FrameLayout>

Any idea? I read about RGB888 vs. RGB565 issues, but couldn’t find a proper solution.

Note: I sure could make change the white in the image to transparent, but would prefer to understand the problem and find a proper solution.

  • 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-06-04T15:40:14+00:00Added an answer on June 4, 2026 at 3:40 pm

    This is really annoying. I wonder, why so few people encountered this problem as it should appear on all 32-bit displays.

    You mentioned right about RGB888 format. The cause of the problem is that regardless of the original bitmap format in the APK files all bitmaps are compressed (in my case into indexed 256-color! wtf?).

    I couldn’t find the way to prevent it, so if anyone knows the proper solution, please tell.

    However, I found two solutions for the white color problem.

    1) Per-bitmap: Say, we have a drawable bitmap resource called @drawable/mypng, which causes the problem. We need to add an additional XML drawable drawable/mypng_nofilter.xml

    <?xml version="1.0" encoding="utf-8"?>
    <bitmap xmlns:android="http://schemas.android.com/apk/res/android"
        android:src="@drawable/mypng"
        android:filter="false"
    />
    

    and use @drawable/mypng_nofilter instead.

    2) For entire activity: In activity onCreate method we need to add

    getWindow().setFormat(PixelFormat.RGB_565);
    

    Now the window has 16-bit color depth and all bitmaps appear “properly” white.

    Again, I would prefer to have 32-bit color depth, but I don’t know how to control compile-time image compression.

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

Sidebar

Related Questions

My idea is building a logo image (similar to Matlab's startup one) which shows
Is it possible to use the SplashScreen class in .Net to show dynamic messages
I have a class called Textures that use holds some data like this //Textures.h
I have an animated .GIF image that I created with http://ajaxload.info/ and some editing.
I have written a mapping application which can either use Google Maps or Open
I'm writing an application that needs to display a full-screen splashscreen image on start.
I have a splash screen in my application which show a splash image while
I wrote some test code to learn how to use SharedPreferences. The app saves
The Splashscreen/Loading-Window in my WPF application is set to Topmost=True . Now this windows
I was wondering if I can set the splash screen to a programmatic SplashScreen

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.