[iOS/Android] ImageView in fullscreen

You must Login before you can answer or comment on any questions.

Hi, i would like to do an event click to open the image in full screen.

2 Answers

Accepted Answer

if you want a real full screen that will hide the status bar you need to put the image inside a window and open the window full screen

var self = Ti.UI.createWindow({
            name: 'root',
            fullscreen : true///<<<< set it here or
        }),
        image = Ti.UI.createImageView({
            image: url
        });
        self.add(image);
        self.open({fullscreen:true});///<<<< set it here

Set the size of the image to full screen.

i.e., In the image property mention

height:"100%", width:"100%"

Your Answer

Think you can help? Login to answer this question!