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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:52:02+00:00 2026-06-08T11:52:02+00:00

I have an Android game that includes a screen that lists all ongoing games,

  • 0

I have an Android game that includes a screen that lists all ongoing games, short description, opponents name and profile picture etc. Pretty similar to what Zynga’s With Friends games have. However, I’ve always had huge performance issues with rendering the list of games when you have tens of ongoing games which all have to be listed.

Since the loading times can be 5+ seconds, I figured it’s time to do some profiling and figure out the bottlenecks. It turns out that roughly 70% of the time goes to inflating and initializing the layout elements (which have been minimized to be as flat and light as possible), so even if I could optimize the rest of the code to happen instantly, the loading time would still be unacceptable from UX perspective.

A simple ListView wouldn’t work due to the additional UI elements, such as buttons etc that do not follow the same template as the games. On iOS a similar structure is rendered almost instantly, even on 3GS, so I’d expect at least similar speeds from a similarly powered Android devices. What are my options to reduce the time used for layout inflation and initialization?

(A Words With Friends screenshot for reference if you don’t know what it looks like)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-08T11:52:03+00:00Added an answer on June 8, 2026 at 11:52 am

    You should look at this conference about ListView. It teach how to implement it on a good way, doing as a minimum of allocation as possible. The content that could interest you begins at the 9th minute.

    • The first topic is to use the convetView provided by the getView function
    • The second one is to use a ViewHolder to improve the access speed

    Another thing, you should try to manage your image loading to be sure that part is not blocking the rendering for a while.

    There is a good tool to profile your application, to know what are the laggy functions in your code : look at that here

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

Sidebar

Related Questions

I am making an android game that should display a message that you have
I'm developing a crime themed android game that will have a high maturity rating
I have an Android NDK game (NDK 4.) Almost all of the code is
I'm in the process of developing an android game. I have an activity that
I am programming an android game that has a screen, which has a ScrollView
I want to have a virtual dpad in an Android game so that when
Possible Duplicate: How to create a file in android? I have a game that
I have developed an Android game that integrates facebook SDK for checking if one
Ok, I have my android game running smooth but can't get it to advance
I'm building a little Android game using libgdx. For now I have a copy

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.