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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:11:11+00:00 2026-06-12T06:11:11+00:00

I have a game that uses some custom buttons that automatically resize to fit

  • 0

I have a game that uses some custom buttons that automatically resize to fit the screen horizontally. The images contained in the button display fine in all android versions up to and including 4.0.3. However suddenly on jellybean, they quit displaying. The buttons still work, the images just don’t display.

 <LinearLayout
 android:orientation="horizontal"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:gravity="bottom"
 android:layout_weight="0.55"
 android:id="@+id/dicemenu">

 <com.surreall.yacht.SquareButton        
    android:layout_height="fill_parent"
    android:layout_width="0dip"          
    android:layout_weight="1"
>
    <ImageView
    android:id="@+id/die1"
    android:layout_gravity="center"
    android:adjustViewBounds="true"
    android:scaleType="centerInside"
    android:layout_height="wrap_content"
    android:layout_width="0dp"          
    android:layout_weight="1" 
    android:layout_margin="9dp" 
    />

  </com.surreall.yacht.SquareButton>

  <com.surreall.yacht.SquareButton        
    android:layout_height="fill_parent"
    android:layout_width="0dip"          
    android:layout_weight="1"
>
    <ImageView
    android:id="@+id/die2"
    android:layout_gravity="center"
    android:adjustViewBounds="true"
    android:scaleType="centerInside"
    android:layout_height="wrap_content"
    android:layout_width="0dp"          
    android:layout_weight="1" 
    android:layout_margin="9dp" 
    />

  </com.surreall.yacht.SquareButton>

   <com.surreall.yacht.SquareButton         
    android:layout_height="fill_parent"
    android:layout_width="0dip"          
    android:layout_weight="1"
    >
    <ImageView
    android:id="@+id/die3"
    android:layout_gravity="center"
    android:adjustViewBounds="true"
    android:scaleType="centerInside"
    android:layout_height="wrap_content"
    android:layout_width="0dp"          
    android:layout_weight="1" 
    android:layout_margin="9dp"
    />

  </com.surreall.yacht.SquareButton>
  <com.surreall.yacht.SquareButton         
    android:layout_height="fill_parent"
    android:layout_width="0dip"          
    android:layout_weight="1"
>
    <ImageView
    android:id="@+id/die4"
    android:layout_gravity="center"
    android:adjustViewBounds="true"
    android:scaleType="centerInside"
    android:layout_height="wrap_content"
    android:layout_width="0dp"          
    android:layout_weight="1" 
    android:layout_margin="9dp" 
    />

  </com.surreall.yacht.SquareButton>
  <com.surreall.yacht.SquareButton         
    android:layout_height="fill_parent"
    android:layout_width="0dip"          
    android:layout_weight="1"
>
    <ImageView
    android:id="@+id/die5"
    android:layout_gravity="center"
    android:adjustViewBounds="true"
    android:scaleType="centerInside"
    android:layout_height="wrap_content"
    android:layout_width="0dp"          
    android:layout_weight="1" 
    android:layout_margin="9dp" 
    />

  </com.surreall.yacht.SquareButton>

  • 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-12T06:11:12+00:00Added an answer on June 12, 2026 at 6:11 am

    Might not quite be the “fix” I was looking for, but I found I was using .gif files for my images and i guess that is not recommended for android. It is suggested to use .png instead, I switched and images are showing up ok now…

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

Sidebar

Related Questions

Ok, Just some background... I have a fully functioning game that uses the canvas
I have a game engine that uses OpenGL for display. I coded a small
I have a cocos2d powered game that uses UIKit menues, so I only use
I have a C# game program that i'm developing. it uses sound samples and
We have an existing PC game that uses C# and the XNA Framework. We
I have a simple game that uses a 3D grid representation, something like: Blocks
I have code in a .dll that a game in unity3d uses to connect
I have a 2-player, iOS turn-based game that uses the game center and GKTurnbasedMatch.
I have a very simple Player class in java that uses some strategies object
I'm writing some code that uses a Tree (a regular tree that can have

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.