Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
shekarchandra168
Posts: 12
Registered: ‎06-08-2012
My Device: 9900
My Carrier: T-mobile

reg:zoomscreen issue

presently i have one zoomscreen application when i was zooming the image the text apper in he image was not  clear view to the user can any one help me to present the text  in effective and cler to the user  because iam using ZoomScreen prebuilt class in my application

 

here is the my code

private EncodedImage _image;   
    /**
     * Creates a new MyScreen object
     */
    public MyScreen()
    {        
        // Set the displayed title of the screen       
        setTitle("MyTitle");
        _image = EncodedImage.getEncodedImageResource("img/bg1.png");        
        BitmapField bitmapField = new BitmapField(_image.getBitmap(), FIELD_HCENTER | FOCUSABLE);
        add(bitmapField);
    }
    
    protected boolean navigationClick(int status, int time)
    {
        // Push a new ZoomScreen if track ball or screen is clicked
        UiApplication.getUiApplication().pushScreen(new ZoomScreen(_image));                            
        return true;
    }
    
    protected boolean touchEvent(TouchEvent message)
    {     
        if(message.getEvent() == TouchEvent.CLICK)
        {
            UiApplication.getUiApplication().pushScreen(new ZoomScreen(_image));                            
        }
        return super.touchEvent(message);          
    }

Please use plain text.