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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:48:30+00:00 2026-05-14T02:48:30+00:00

I am working with the sample Home application project on http://developer.android.com/resources/samples/Home/index.html I’ve added another

  • 0

I am working with the sample Home application project on http://developer.android.com/resources/samples/Home/index.html

I’ve added another value to the THUMBS_IDS and IMAGE_IDS Integer arrays in the Wallpaper class for a total of four wallpaper options.

When I run the application with Device API version 7, Skin: HVGA, hw.lcd.density: 160, in portrait layout, the fourth wallpaper option is not shown.

I need to use the directional keys in the emulator to see the 4th wallpaper option, because the first option is centered.

I have modified only the wallpaper.xml file with a variety of android:layout_* options with no success at this point.

How do I show all four of my wallpaper options?

  • 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-05-14T02:48:30+00:00Added an answer on May 14, 2026 at 2:48 am

    The problem isn’t so much with the number of thumbnails that can be seen at once, but rather that the spacing between each of the images is so large that the 4th thumbnail is completely off the edge of the screen. So what you really want to do is reduce the spacing between these thumbnails, which are displayed using a Gallery View. Open up the wallpaper.xml file, and this change is very easy to do. Find the line:

    android:spacing="16dp"
    

    and replace the 16 with a much smaller number, e.g. 4. (If you’re curious, dp stands for density-independent pixel – it’s a system Android uses to automatically scale things depending on screen sizes. But this isn’t wholly relevant now…) Once that’s done, you should see the side of your 4th image in the gallery once you start the program again. Tada!

    (Normally galleries should be ‘touch-scrollable’ as well so you shouldn’t have to use the keypad to make it scroll, but I guess they didn’t bother implementing that on this example application.)

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

Sidebar

Related Questions

I'm working on a sample i found on this site: http://kevinmusselman.com/blog/2009/02/access-webcam-with-flash/ it captures the
I am working on a sample project for testing KIF framework and Zapp. The
I am currently working on a sample application which uses QNetworkAccessManager to send the
Using the TinyCarousel program I created the following sample page. http://www.dealred.com/wa/jqimage.htm The carousel is
Hi guys I am working on an application.Where there is a home screen with
I'm working on an application that constructs springboard like interface (like iPhone's home screen).
I am currently working on a mobile application framework written in HTML 5, CSS3
I am new to Android development and want to build a first sample application.
Can anyone provide a working sample code to convert following Oracle DB table with
Can someone explain the statement below to me with a working sample/example. thanks in

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.