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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:49:51+00:00 2026-06-02T03:49:51+00:00

Hi i want to Add Multiple Images on the Horizontal Scroll Field Manager. Staring

  • 0

Hi i want to Add Multiple Images on the Horizontal Scroll Field Manager.

Staring Point of the Horizontal Field Manager is Middle of the Screen Horizontally.

Position of Focus image (y coordinate) up form another images.

When Focus Changed from image to right than scroll images Right Side.

If Focus Changed from images to left than scroll images left up to full Width of the Screen Left.

But the Starting Point of Images Middle of the Screen Horizontally.

Here is My Code for that

public class MainClass extends MainScreen{
private HorizontalFieldManager hManager;
private HorizontalFieldManager[] hBitmap;
int Height = Display.getHeight();
int Width = Display.getWidth();
private PictureScrollField pictureScrollField;
private String footer_images[] = new String[]
               {"ajtak.jpg","assiant.jpg","astha.jpg","fox_news.jpg",
               "cnbc.jpg","india_news.jpg","zee.jpg"};
private Bitmap [] bitmaps;
private ScrollEntry[] entries;
public MainClass()
{
    hManager = new HorizontalFieldManager()
    {
        protected void sublayout(int maxWidth,int maxHeight)
        {
            super.sublayout(maxWidth, maxHeight);
            setExtent(Width, 60);
        }


    };

    bitmaps = new Bitmap[footer_images.length];
    entries = new ScrollEntry[footer_images.length];

    for(int i =0; i < footer_images.length;i++)
    {
        bitmaps[i] = Bitmap.getBitmapResource(footer_images[i]);
        entries[i] = new ScrollEntry(bitmaps[i], "", "");

    }

    pictureScrollField = new PictureScrollField(36, 36);

    pictureScrollField.setData(entries, 0);
    pictureScrollField.setImageDistance(38);
    pictureScrollField
            .setHighlightStyle(HighlightStyle.ILLUMINATE);
    pictureScrollField.setHighlightBorderColor(Color.GREEN);

    pictureScrollField.setBackground(BackgroundFactory
            .createSolidTransparentBackground(0x212424, 150));

    pictureScrollField.setLabelsVisible(false);

    pictureScrollField.setFocusListener(new FocusChangeListener() {

        public void focusChanged(Field field, int eventType) {  
            if (pictureScrollField.isFocus()) {

                switch (pictureScrollField.getCurrentImageIndex()) {
                case 0:
                    setMargin(0, 0, 20, 0);
                    break;

                case 1:
                    setMargin(0, 0, 20, 0);
                    break;

                case 2:
                    setMargin(0, 0, 20, 0);
                    break;

                case 3:
                    setMargin(0, 0, 20, 0);
                    break;

                case 4:
                    setMargin(0, 0, 20, 0);
                    break;

                case 5:
                    setMargin(0, 0, 20, 0);
                    break;

                default:
                    break;
                }

            }


        }


    });
    hManager.add(pictureScrollField);
    add(hManager);
}
  • 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-02T03:49:52+00:00Added an answer on June 2, 2026 at 3:49 am

    Try this

        private PictureScrollField _pictureScrollField;     
    
        ScrollEntry[] entries = new ScrollEntry[ 4 ];
        entries[0] = new ScrollEntry(Bitmap.getBitmapResource("image1.jpg"), "BlackBerry", "image 1");
        entries[1] = new ScrollEntry(Bitmap.getBitmapResource("image2.jpg"), "Blue logo", "image 2");
        entries[2] = new ScrollEntry(Bitmap.getBitmapResource("image3.jpg"), "Black logo", "image 3");
        entries[3] = new ScrollEntry(Bitmap.getBitmapResource("image3.jpg"), "Building", "image 4");
    
        _pictureScrollField = new PictureScrollField(150, 100);
        _pictureScrollField.setData(entries, 0);
        add(_pictureScrollField);  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple images and want to find out if each image horizontal or
I want add multiple images in my own project like 7 images but in
I want to add multiple borders on a single image. Is this possible through
I want to add multiple jpanels to jpanel.So i added a root panel to
in order to make things easier for users i want to add multiple keyword
Hi In my application I am using SQLITE database, I want to add multiple
I want to add a class to multiple span elements with common classname's based
I want to show multiple detail section in my jasper report. How to add
I want let user to upload images to server add some info (like description,
I have two g:select comboboxes that I want to add to the multiple select

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.