05-01-2012 06:08 AM
Hello All, Greetings..!!
I am new to blackberry app development. I am trying to make an app where in i have a picture scroller , the functionality i want to add is that when we click on a picture scroller image, the image should appear highlighted or little raised from rest of the images, but i am not able to do it.
In picture scroller, by default center image appears highlighted. If i overlap picture scroller with another image that remains fixed in such a way that as and when images from scroller crosses that fixed image it appears raised.
Could you please help how do i give this functionality, i am not able to implement it.
Thanks & Regards
henna singh
05-01-2012 06:26 AM
Hi Henna
Try this solution
Add listner to picture scroll field
_pictureScrollField.setChangeListener(this);
Implement navigation click method
--------------------------------------------------
protected boolean navigationClick(int status, int time)
{
if(_pictureScrollField.isFocus())
{
_pictureScrollField.setHighlightStyle(HighlightSty
return true;
}
return super.navigationClick(status, time);
}
implement FieldChanged method
--------------------------------------------------
if(field instanceof PictureScrollField){
_pictureScrollField.setHighlightStyle(HighlightSt
}
Hope this helps....
05-01-2012 07:01 AM
Welcome to the forums.
Sorry I do not actually understand what you are asking for. Can you give us a screen shot showing something similar.
05-01-2012 07:09 AM
Hi rabiray,
thanks for the quick reply. i will try implement it.
i will show what i want.
The image that is clicked to be little raised than the rest
Thanks

05-01-2012 07:13 AM
Hi Heena,
As per my solution is concerned..this will put a red border around the selected image.
No idea as per now how to raise this.....
Cheers
Rabi Ray
05-01-2012 07:23 AM
Hi,
thanks.
this is what i want
the selected image in the scroller to be raised
i hope you understood now
05-01-2012 07:36 AM
hi rabi,
could the fields be overlapped, i mean
1. i have this particular square image filled with white color, and i placed it in the center, keeping it fixed
2. i have this picture scroll a little below that fixed image such that it overlaps that fixed image, and when we scroll the images included in the scroll overlaps on it and it appears raised.
i hope u understood what am saying.
Thanks
henna
05-01-2012 07:45 AM
Hi
Not sure if we can place a fixed image inside picture scrol.....
Have tried diffrent styles available in
PictureScrollField.HighlightStyle
like ILLUMINATE_WITH_SQUARE_BORDER etc....
Cheers
Rabi
05-01-2012 07:47 AM
hey rabi,
i wont place a fixed image inside picture scroll,
but the picture scroll will overlap over the fixed image..
i hope you got it now.
i have tried applying diferent styles, it dint help.
05-01-2012 08:35 AM
Hi Heena
I dont think it is so simple to implement...i dont know how to fix one image and overlap another field onto it.
I think it is best to implement your own custom class and draw accordingly.
Thanks
Rabi Ray