Image Zoom in and Zoom out

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

Image Zoom in and Zoom out

Postby sannan » Fri May 15, 2009 5:42 am

Hi,

I am using ImageSwitcher example given with SDK APIdemo-->Gallery its working perfectly,
Now i want to add zoom in and zoom out ...feature to same application

Could anyone please help me regarding same.?I am just doing the resizing of layout for that perticular ImageSwitcher view....but i think that is not the way it should be implemented.

Any one suggest a better way of doing it......



Thanks
sannan
Freshman
Freshman
 
Posts: 5
Joined: Fri May 15, 2009 5:32 am
Location: Hyderabad

Top

Postby desuvinodkumar » Tue Jul 14, 2009 6:46 am

Hi

By Using Key event i know how to do....

By controlling the width and height of the images we can zoom in and zoom out of image

This Snippet will help u..


image.setBounds((getWidth()/2)-zoomControler, (getHeight()/2)-zoomControler, (getWidth()/2)+zoomControler, (getHeight()/2)+zoomControler);
image.draw(canvas);
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Image zoomin zoomout

Postby sannan » Tue Jul 14, 2009 7:09 am

Hi,

Thaks for the reply ...I did previously with the same way ...its working fine....


Than you once again
sannan
Freshman
Freshman
 
Posts: 5
Joined: Fri May 15, 2009 5:32 am
Location: Hyderabad

Postby desuvinodkumar » Tue Jul 14, 2009 7:11 am

Hi

U know how to do it by Touching the screen...........

u have any idea ......

please share me .....
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Postby sannan » Tue Jul 14, 2009 9:54 am

Hi,

Sorry ..but I also did it with key handling......

I am not able do it with Touch or GestureSense....
sannan
Freshman
Freshman
 
Posts: 5
Joined: Fri May 15, 2009 5:32 am
Location: Hyderabad

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 9 guests