Display image full screen depending on parameter

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Display image full screen depending on parameter

Postby mulletinc » Fri Feb 27, 2009 11:16 pm

Hey guys, this is my 1st post but this forum has helped me through a few problems so thank you.

I currently have a little problem, I would like to call a method with a parameter passed to it and for an image to be displayed full screen depending on the parameter. The only problem I'm having is, I have no idea how to display the image. I have tried various methods but still have not managed to have a working program.

I know this is probably the most simple thing to do, and I have experience in Java, but I just cannot get it to work.

Any help would be greatly appreciated.

Once Poster
Once Poster
Posts: 1
Joined: Fri Feb 27, 2009 11:11 pm


Re: Display image full screen depending on parameter

Postby jagtap.jj1 » Mon Mar 02, 2009 8:43 am

For displaying image, requires "ImageView" widget in layout

ImageView iv = (ImageView)findViewById(R.id.myImage);

java-android developer
User avatar
Senior Developer
Senior Developer
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests