08-25-2008 03:09 PM
08-07-2009 03:46 AM
Hi all,
i need to add two different animated gifs to my screen. i take a manager and am able to add only one animated gif at a time. none of the other fields are not adding. even paint method is also not working. i do not know how to manage all these. please suggest me how to fix this.
my requirement is i need to add two different animated gifs to my screen. when use add(gif1) ;, add(gif2);, only one gif1 is adding other
is not. in addition to these i need to add some fields. i use the code of animatedgiffield for this purpose.
Thanks and Regards,
PraveenGoparaju
08-07-2009 11:45 AM
rkao1
I am not sure if I am missing something about your requirement, but how about playing with the globalAlpha value.
Where you modify the globalApha in the paint or paintBackground() method.
Something like:
protected void paint(Graphics graphics)
{
int alpha = graphics.getGlobalAlpha();
graphics.setGlobalAlpha(0x4F);
graphics.setBackgroundColor(Color.DARKGRAY);
graphics.clear();
graphics.setGlobalAlpha(alpha);
super.paint(graphics);
}
You modify the value of alpha to suite your need.
I did use this suggested idea in the past with customized popup screens and it worked fine.
Rab
08-10-2009 08:13 AM
Hi all,
I got the popupscreen successfully, but i have a small problem yet. the popupscreen is having the black border how can i remove that border or how can i overwrite the black color with the background color of my manager.
Thanks and Regards,
PraveenG.
05-31-2010 05:51 AM
I have the same situation here. How can I overwrite that border color?
05-31-2010 05:56 AM
override the applyTheme(Graphics g, boolean on) of the popup screen. it will solve the problem.
protected void applyTheme(Graphics g, boolean on){
//
}
05-31-2010 06:47 AM
Thanks, but it didn't work to me. Can you post some of your code?
05-31-2010 06:53 AM
this is my working sample code:
public class PrintPopup extends PopupScreen
{
public PrintPopup()
{
super(new VerticalFieldManager());
this.setBackground(BackgroundFactory.createSolidTr ansparentBackground(Color.ALICEBLUE, 0));
add(new MyOwnManager());
}
protected void applyTheme() {
}
}