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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:53:29+00:00 2026-06-17T07:53:29+00:00

I am working on a project and set the background of the application to

  • 0

I am working on a project and set the background of the application to white by doing the following:

<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
    <!-- All customizations that are NOT specific to a particular API-level can go here. -->
    <item name="android:actionBarStyle">@style/MyActionBar</item>
    <item name="android:actionBarSize">140dp</item>
    <item name="android:background">#ffffff</item>
</style>

This works a charm however the problem is that the toast messages are now being displayed with a white background. The strange thing is that I integrated a splash screen into the project and when the user logs in the toast message is displayed normally.

It is really strange and would appreciate any help on the issue.

EDIT: ADDED SCREENSHOT SHOWING ISSUE. The screenshot is taken just as the initial toast (with unwanted effect) is fading out and the new one (with default) is fading in.

enter image description here

  • 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-17T07:53:30+00:00Added an answer on June 17, 2026 at 7:53 am

    I resolved the issue. The reason for the change in the Toast background color was due to the way I was passing in the context of the View object it was contained inside.

    The following line of code would cause the background color to change to the unwanted white color:

    Toast.makeText(v.getContext(), "Checking login details...", Toast.LENGTH_SHORT).show();
    

    This line of code would return the Toast to the default system style:

    Toast.makeText(getApplicationContext(), "Checking login details...", Toast.LENGTH_SHORT).show();
    

    I am not sure if there is a huge problem with fixing it like this as I am only learning. If anyone can see a problem please share. It seems to be working just fine though.

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

Sidebar

Related Questions

I am working on a mini-project which consists of doing a client-server chat application.
i am working on a project, with a set of usercontrols beeing loaded dynamically
In a project I am working on, Apache is set up to only forward
I am working on a legacy Java Enterprise server project, trying to set up
I'm working on this project, each page has a different background image for it.
Update After adding the following style and setting it for my application, I have
I'm working on an interactive web application, currently set up on http://picselbocs.com/projects/goalcandy (user: demo@demo.com,
I tried to put background image to linearlayout in my android project. All is
Background I am working on a project that runs in an embedded web browser
Background: I am working on a large c++ project with multiple executable and library

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.