Showing posts with label imageview. Show all posts
Showing posts with label imageview. Show all posts

Sunday, June 10, 2012

How can I get zoom functionality for images?


Is there a common way to show a big image and enable the user to zoom in and out and pan the image?

Monday, May 14, 2012

Should i resize the bitmap before adding to a ImageView or let the ImageView resize the Bitmap?


i have a simple question: Should i resize a bigger bitmap before adding to a ImageView or let the ImageView resize the Bitmap? What's the right way, regarding performance?

Friday, April 27, 2012

Android — How to position View off-screen?


I'm trying to animate a simple ImageView in my application and I want it to slide in from the bottom of the screen and come to a resting position where the top 50px of the view is off the top of the screen (e.g. the final position of the ImageView should be -50px in X). I've tried to use the AbsoluteLayout to do this, but this actually cuts off the top 50px of the ImageView such that the top 50px is never rendered. I need to have the top 50px of the ImageView visible/rendered while it's animating and then simply have it come to a rest slightly off-screen. I hope I've explained that well enough.

Thursday, February 16, 2012

Wednesday, February 8, 2012

Tuesday, January 17, 2012

Android ImageView onClickListener won"t work


I am using a View Object named CameraView that implements View and uses a Hud-Object to create the HUD for a game. In this Hud-Class i use a LinearLayout to place ImageViews. I want these ImageViews to be clickable and to be able to fire some Code on Click. Thats why I use the onClickListener for each of the ImageViews. But it won't work at all.