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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:46:27+00:00 2026-06-07T09:46:27+00:00

I have a custom view called GameView where my game is drawn. There is

  • 0

I have a custom view called GameView where my game is drawn. There is also a child-view called PausedView that works as an overlay for GameView. When the game is paused, the PausedView is set to visible and the screen gets a 50% opacity black overlay and 4 buttons.

My problem is that on my LG Optimus S (Android 2.3.3) Those buttons do not appear. They are there and you can click on then, but they aren’t shown. Furthermore, the black overlay only appears on buttons and textviews within GameView. If I navigate away from, then back to the Activity, it all appears normal.

This bug doesn’t happen on my Motorola Xoom (Android 3.2.1) or my Motorola Droid (Android 2.2.3). It also didn’t happen on my Optimus until recently (I think around the time I got a service update).

screenshots of what I’m talking about:

http://postimage.org/image/qjhiho3ed/

http://postimage.org/image/9k8k2es6t/

I’ve tried calling postInvalidate() on the GameView and the PausedView, but it didn’t help.

Has anyone encountered anything like this?


update:
I tried removing the invisibility setting from XML and using this code, but it still isn’t working. I was able to rectify it by calling setVisibility on the views long after they had been created, but I can’t find the right place to call those functions during creation.

// Use XML layout
setContentView(R.layout.main);

// define the views of this activity
gameView    = (GameView)findViewById(R.id.gameView);
pausedView  = findViewById(R.id.pausedView);
victoryView = findViewById(R.id.victory); 


pausedView.setVisibility(View.INVISIBLE);
victoryView.setVisibility(View.INVISIBLE);

update:

fixed it by using

pausedView.setVisibility(View.GONE);
victoryView.setVisibility(View.GONE);
  • 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-07T09:46:29+00:00Added an answer on June 7, 2026 at 9:46 am

    Yes, I think i have encountered something similar.
    In my application, I’ve got a FrameView with an image source and an overlay. On my Android 4.0.3 device it appears fine, but with 2.3.x devices (or earlier) they don’t appear when being set to visible.

    My only solution so far is to not set the views invisible in the XML file and to turn them invisible (or gone) right after the layout has been inflated. After that, everything seems to work fine.

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

Sidebar

Related Questions

I have a segue (called ToSettingsSegue ) that pushes a custom view controller (
I have a custom view that accepts drags. In the custom view there is
I have a class called Game that extends View. I have an xml called
I have a custom view which I call Node that is a child of
I have a custom view in my Android App that uses a ScaleGestureDetector.SimpleOnScaleGestureListener to
Hi i have a custom view running my game. Once the player loses it
I have a custom control/view that observes the direction of a gesture within its
I have a custom-made view that extends the View class. I would like 2
I have a simple custom view that is connected via outlet to a NIB.
I have a custom list view that is getting data from server and changing

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.