picturescrollfield

I use the picturescrollfield to a group of image in a horizontal scrolling of the list. Now I want a black semi transparent

picture and a few lines of code as soon as each image... .with scrollentry label option I can place a single

line... I want multiple line text and that too with different fonts. Help me to do so.

You can this by adding PictureScrollField to Manager.

Try the following measures:

(1) create horizantalManager and override the sublayout. The xpos and ypos field shall be settled by the xpos and ypos field of image scrolling.

for example: image scroll field is added vertically Center. If your field ypos = getPreferredHeight() 2 - fieldHeight/2;

PosX = getPreferredWidth () / 2 - fieldWidth/2;

This will put you field exactly at the center of your screen.

(2) add labels with different fonts to this Manager.

(3) set the image of tranparent semi as a backdrop to this Manager.

(4) add the picture scroll field to this Manager.

Tags: BlackBerry Developers

Similar Questions

  • picturescrollfield does not work on bb jde 6.0

    Hello

    I do picturescrollfield, it works correctly in bb 5.0, but it doesn't work on 6.0

    Please help me

    Code:

    images [0] = Bitmap.getBitmapResource ("mapIt_a.png");

    images [1] = Bitmap.getBitmapResource ("loading.png");

    images [2] = Bitmap.getBitmapResource ("next.png");

    Entries [] ScrollEntry = new ScrollEntry [3];

    for (int i = 0; i)< entries.length;="">
    {
    entries [i] = new ScrollEntry();
    Entries [i] .setPicture (images [i]);
    }

    pictureScrollField = new PictureScrollField (Display.getWidth (), Display.getHeight ()); / /(150, 100)
           
               
    pictureScrollField.setData (registration, 0);
    pictureScrollField.setHighlightStyle (HighlightStyle.ILLUMINATE_WITH_SHRINK_LENS);
    pictureScrollField.setHighlightBorderColor (Color.BLUE);
                  
    pictureScrollField.setBackground (BackgroundFactory.createSolidTransparentBackground (Color.BLACK, 150));

    pictureScrollField.setLabelsVisible (true);

    Add (pictureScrollField);

    Thanks for the reply

    his problem of Simulator beacause that not only he but simple helloworld program doesn't work.

    now I uninstall

  • PictureScrollField + EyelidFieldManager + ToolbarManager focusing problems

    Hi all

    I have a problem with the help of PictureScrollField and EyelidFieldManager and ToolbarManager.

    Take a look at the screenshot of the Simulator.

    In the Middle I have PictureScrollField, which has to scroll the images, which are set to the height and width of the screen, so PictureScrollField takes all the screen space.

    I also have EyelidFieldManager which includes a ToolbarManager in the background. It appears on top of the PictureScrollField and she disappears after 2 seconds. This is perfect, however, my problem is that no matter what I do, the toolbar does not respond to keys and clicks.

    Looks like PictureScrollField diverts attention.

    If I do a shorter PictureScrollField, prevent duplication of the EyelidFieldManager the PictureScrollField, then ToolbarManager works, otherwise it does not (shortening of the filed photo defeats the purpose of the eyelid).

    Is it possible to change the emphasis of PictureScrollField to the ToolbarManager?

    I think I got this job.

    I've extended EyelidFieldManager and oversteps the touchEvent (TouchEvent message) method returns false. This fixes the problem and I toolbar accepts touch events when the lid is closed.

    It seems that EyelidFieldManager onTouch method returns true or something like that...? Please post here if there is no better explanation for this.

    Dnepr thanks for your replies.

  • Tap a test of picturescrollfield

    I implement picturescrollfield for a group of image horizontally. When I travel with traceball that's moving, but when I touch the screen and trying to scroll nothing are happeing. Can someone tell me how to give touchevent so that the screen scroll horizontally without use of traceball by touch

    As this field must manage that provided such OK touchEvents, I think you have a code that is capturing the touchEvents and will not be passed on to the PictureScrollField.

    I add your domain to a standard screen, with no replacement of all methods and make sure that it fails in this situation.  If you write this test code in a generic way, so that it uses only standard provided controls, then in case of failure, you will be able to paste it here and we can all run and test it ourselves.

    Please do not paste in a snippet of code which is just cut and paste in your current application.  Who will almost certainly redundant stuff which makes it difficult to read and is also specific to your application.

  • I need to analyze the image and display it in PictureScrollField

    Hello...

    I want to display images in a PictureScrollField, but the only problem is that I get the images online.

    How can I do this?

    Please hhheeellppp!

    What exactly is your problem?
    Take a look at this example, maybe it helps:
    http://www.coderholic.com/BlackBerry-webbitmapfield/

  • Issue of PictureScrollField

    Hi guys,.

    I develop an image gallery application using PictureScrollField for OS5.0 I implemented the domain successfully, but now I need to change the image by clicking on the next button... How can I perform this action... You have my points?

    Can someone help me please

    Thank you

    PAPI M

    Hello

    I used just like that... and its working very well...

    _pictureScrollField.SetData (registrations, _pictureScrollField.getCurrentImageIndex () + 1);

    Thank you

    Nourredine

  • PictureScrollField problem Simulator 9900

    Picturescrollfield does not work on Simulator 9900

    another device like 8900,9550,9700, sucessfully working

    Please give the solution

    I was able to run without problem.  What problem are you running to?

  • PictureScrollField + 6.0 = &gt; resizing of images

    Hi everyone, it's me again.

    I have a compiled application under 5.0 that great workd with touch device like storm (5.0), but which has some leaks when I start under 6.0

    I have a pictureScrollField that hold virtually all the screen, less than 5.0, when an image is smaller that the space has allowed the pictureScrollField, then it's a painting just like that, centered on the screen but not resized.

    Under device 6.0 or simulation (torch), the bitmap are resized every time.

    I checked the PictureScrollField 5.0 documentation which stated that "image not are NOT resized.

    Any clue?

    I have found no solution so I started to create new Bitmap from the one i dl.

    Like this:

    Bitmap resizedBitmap = new Bitmap(360,480);
    Graphics g = Graphics.create(resizedBitmap);
    g.setColor(Color.BLACK);
    g.fillRect(0, 0, 360, 480); bitmap.scaleInto(resizedBitmap, Bitmap.FILTER_BILINEAR, Bitmap.SCALE_TO_FIT);
    
  • PictureScrollField event management

    Hey all.  I have a little problem that I can't seem to find and answer.  I use a PictureScrollField Manager for navigation.  I have 3 images that are sitting inside the Manager (I intend using them for buttons).  I too wrote the touchEvent field, but gives only a test, as I click the button.  How would assign a separate for each image handler, so that if I click on an image, I need on a single page, and if I click on the other, I'm going to another page?

    ~ Strych

    EDIT: I'm sorry if this does not fully since.  Its a confusing subject at the beginning.

    OK, so after a bit of work, I finally got one to work.  I'll post the code to help people.  Also, I'm sorry if my way, it is not "corrent."  I am really new to java (C + c++ / programmer ASM here xD)

    //psf is the instantiation of "PictureScrollField."//To assign listeners to the pictures you have to use get current index.//You check "GetCurrentIndex" context aginst an element from the//array you made for the entries.
    
    psf.setChangeListener(new FieldChangeListener(){    public void fieldChanged(Field field, int context)    {        if(psf.getCurrentImageIndex() == 0)        {            //If image one is pressed do something!        }//End if
    
            else if(psf.getCurrentImageIndex() == 1)        {            //If image two is pressed do something!        }//End else if.
    
            else if (psf.getCurrentImageIndex() == 2)        {            //If image three is pressed do something!        }//End else if    }});
    
    add(psf);
    

    Hope this helps,

    ~ Strych.

  • PictureScrollField.ScrollEntry problem

    Hello

    I'm trying to use a PictureScrollField.  The code seems fine, but don't want to compile.  The error I got is: cannot find the symbol, to point to the PictureScrollField.ScrollEntry [4]; part of the code.  Can someone help me with this?

    Here is the code example:

            Bitmap img1 = Bitmap.getBitmapResource("img1.gif");
            Bitmap img2 = Bitmap.getBitmapResource("img2.gif");
            Bitmap img3 = Bitmap.getBitmapResource("img3.gif");
            Bitmap img4 = Bitmap.getBitmapResource("img4.gif");
    
            PictureScrollField.ScrollEntry[] se = PictureScrollField.ScrollEntry[4];
    
            se[0] = new ScrollEntry(img1, "lbl_img1", "callout_img1");
            se[1] = new ScrollEntry(img2, "lbl_img2", "callout_img2");
            se[2] = new ScrollEntry(img3, "lbl_img3", "callout_img3");
            se[3] = new ScrollEntry(img4, "lbl_img4", "callout_img4");
    
            PictureScrollField pict = new PictureScrollField(100, 100);
    
            pict.setData(se, 2);
    
            pict.setHighlightStyle(HighlightStyle.ILLUMINATE);
            pict.setHighlightBorderColor(Color.RED);
            pict.setBackground(BackgroundFactory.createSolidBackground(Color.LIGHTBLUE));
            pict.setLabelsVisible(true);
    
            _manager.add(pict);
    

    You forgot the keyword 'new '.

    It is said:

    PictureScrollField.ScrollEntry[] se = PictureScrollField.ScrollEntry[4];
    

    It must be said:

    PictureScrollField.ScrollEntry[] se = new PictureScrollField.ScrollEntry[4];
    
  • effective horizontal lists with scroll

    Hello

    I have a group of images which I want to display in a horizontal list, the size of the list will vary depending on what option a user selects.

    However, I'm not sure of the best way to implement a list if I have a large number of images to provide an it, therefore generating a lot of areas that need to be drawn.

    My idea of making the effective list:

    -Store the images in a circular table.

    -Display the first 3 images on the screen in3 views that are visible to the user (for example <-- img1=""  ="" img2=""  ="" img3="" --="">)

    -Keep a record of what is exposed...

    -When a user scrolls left or right the next/previous image in the table is displayed.

    For example scrolling right once will give me ( <--  img2=""  img3="" img4="" --="">)

    For example scrolling left 3 times from the point above will give me ( < --="" img(n-1)=""  img(n)=""  img1="" --=""> )

    and so on...

    What would be the best way to do what above, or are there better ways?

    I would be grateful if someone could direct me to the relevant documentation, methods of the api should I use as well.

    Is there already a method in the api that can recycle the views in the same way...?

    I would be grateful for any help.

    Thanks in advance.

    Answer:

    PictureScrollField:

    "A slider component that draws a line of images that can be the object of one scroll from side to side using the trackball or touch gestures. The images drag horizontally to align the focus vertically centered image. Images decelerate they approach their new position to give a lively effect. There are also several configurable effects to highlight the image update.

    All images are awarded the same amount of space on the cursor (as defined by imageWidth of the manufacturer and the imageHeight settings). Images may differ from this size, in which case the scroll field behaves as follows:

    Images are NOT resized. If they are larger than the allocated drawing area they are center aligned and cropped to fit the allotted area. If it is smaller than the drawing area allocated, they are centered in the allocated area. »

    From: BlackBerry API 5.0.0

  • Reduce the height of PicturScrollField

    Hi all

    I'm working on an application where I need to work on PicturescrollField.

    But the size and the height of the scroll box is very big, it fits almost the half of the screen if you're targeted for 320 X 240

    Please let me know how I can reduce the height of picturescrollfield?

    Thanks in advance...

    Kind regards

    Laxmikant

    When you create it field picturescroll moves to the size you want:

    _pictureScrollField = new PictureScrollField (width, height)

    I hope this helps.

  • Multiple list field slider

    What is API, used to have many fields to list on a screen that resembles the AppWorld made the Top 25 for (Newest, free, paid, themes, update).

    I now use PictureScrollField, but when I transition to a new page it clears the screen just and repainted the new list.

    It's a 6.0 API. Check out "net.rim.device.api.ui.component.pane". Don't have any samples on top of my head.

    RIM has the source code, so they he probably carried only for their applications on 5.0.

  • BlackBerry Bold 9700 and SQLite, DatabaseIOException

    I developed an Application for the Blackberry Storm with Api 5. He make some insertions in a SQLite database and read them to show in a picturescrollField. No problem at all.

    The code is as simple as this:

    HI fastidias,

    I think you try to create or open a .db (sqlite) to the memory of the device file.

    There is a problem with 5.0 OS Bold (9700) it will not access the device memory .db file.

    If you attempt to run the same on Strom (Simulator even) it will work.

    Resolution: Make sure to create/access your .db on SD card file only. espicially for "BOLD" devices.

    Please let us know the results by changing the path to SD card and also on Strom.

Maybe you are looking for