Android :: Zooming An ImageView?

Sep 11, 2010

This should be easy, but I'm having trouble figuring out how to zoom an ImageView. I have an ImageView inside of a ScrollView and a HorizontalScrollView. I floated a ZoomControls over the ImageView and now I'm trying to figure out how to actually zoom the image.

I was thinking I would just scale the Drawable inside of the ImageView, but I can't figure out an easy way to do this.

How should I be going about displaying an image that I can both zoom and scroll?

And yes, I know about WebViews, but it seems wasteful to load an entire WebView just to display one image.)

Android :: Zooming an ImageView?


Android :: Imageview Ontop Of Another Imageview

Jun 15, 2010

I have a listlayout with items in it that looks like this:

There is first an ImageView (the light) and then two textViews. All of this inside a TableLayout. (source here: http://code.google.com/p/switchctrl/source/browse/trunk/android/res/layout/device_switch.xml)

I want to have a rotating animation of a loading indicator Ontop of this light when this particular device (light) performs an action or an action is performed on it.

How do I put an animation ontop of this light imageview?

View 1 Replies View Related

Android :: Having Trouble With Zooming In Webview

May 27, 2010

I'm new to android. I'm using webview in scrollview to display my local html page (html has text only). I created two buttons for zoomin and zoomout using behind function zoomIn() & zoomOut() respectively. These functions work fine. The problenm is, when I zoom in, some of the text goes out from both top and bottom and it doesn't appear when I scroll.

View 1 Replies View Related

Android :: Zooming - Google Maps Becomes Slower

Feb 15, 2010

We have developed a GPS based app in which it record the user routes and show it on the map.......but Panning around on the map when reviewing my route is painfully slow, it takes at least 4 or 5 seconds for the map to respond the finger swipes......

Overridden the onDraw() method and drawing the lines to show the routes whenever we zoom on the map, the lat-long is again drawn by calling onDraw()(Overridden) method , which has the geopoints with lat- lon values, and thus it becomes very slower process to display the map .. is there any better way to do this so that panning becomes faster as in "MyTracks"

Following is the code to draw the routes on map...........please look into it and guide me how can i make it more efficient so that the panning and zooming works well......

CODE:........................

View 3 Replies View Related

Android :: Zooming On Dev - Google Maps Becomes Slower

Nov 24, 2010

I've developed a GPS app in which i record the user routes and show it on the map. But panning around on the map when reviewing my route is painfully slow, it takes at least 4 or 5 seconds for the map to respond the finger swipes.

I've overridden the onDraw() method and drawing the lines to show the routes whenever we zoom on the map, the lat-long is again drawn by calling onDraw()(Overridden) method, which has the geopoints with lat-lon values, and thus it becomes very slow to display the map. Is there any better way to do this so that panning becomes faster as in the application "MyTracks"?

Following is the code to draw the routes on map. Please look into it and show me how I can make it more efficient so that the panning and zooming works well.

CODE:.......................

View 1 Replies View Related

Android :: Implement Multitouch Image Zooming?

Jun 16, 2010

I'm displaying an image on full screen now i want to zoom it in or out.
Any one guide on how I can implement multitouch image zooming?

I am using the 2.1 sdk version.

View 4 Replies View Related

Android :: Show Single Image With Zooming / Panning

Feb 26, 2010

I have a png and a jpg image on disk. I'd like to use any built-in intent (if any are available) to view the image (just a single one at a time). Something like this:

Intent intent = new Intent();
intent.setImagePath("/blah/myimage.jpg");
startActivity(intent);

is there a built-in intent in android to do this, or do I have to write my own image viewing-activity? It would be cool if there was one that had panning/zooming as found in WebView.

View 1 Replies View Related

Android :: Workaround For Mapview Overlays Not Pinch-zooming Correctly

Oct 26, 2010

If a user does a "pinch zoom" on the map, my overlays don't properly size until the end. This has been noted in other posts, so i assume it is a known issue.

Problem is, my client finds it totally unacceptable, as I am tasked with making the android app look as good as the iphone version.

Is there any way to correct this, even if it is a horrible hack? For instance, can I subclass the mapview and handle drawing or override some other method?

View 1 Replies View Related

Android :: Javascript Execution Stops On Scrolling Or Zooming Any Page

Jun 8, 2010

I am about to develop a web application for smart phones. This app uses some JavaScript code. While testing it on Android devices (Hero, Desire) I noticed that all JavaScript timers immediately stop when the page is moved or zoomed. They never continue. Let's say you have a site which displays web camera images with 5 fps. As soon as you move this page (I mean scroll with finger) the web camera image will never be loaded again. So you can't center or zoom the image at all without stopping the stream. This behaviour is 100% reproducible on all Android devices I tested (1.5, 2.1). It does not appear on an iPhone which continues execution after moving stopped fine.

View 2 Replies View Related

Android :: How Does Droid / IPhone Device Implement Text-zooming

Apr 30, 2010

Simple question - how is text-zooming implemented on an Android/iPhone device? Do they pre-compute frequently used bitmaps of a font and replace the text as the scale changes? Or do they extract the contours from the font files and render the text as vector graphics?

View 1 Replies View Related

Zooming With Multiple Images?

Jan 23, 2012

I'm creating an app that allows the user to zoom in and out and pan around the screen.

My question is this, how would I allow this to be done with multiple images? Lets say I have a background grid image and 3 market bag images. Is there away of doing this neatly and efficiently in Java?

Here's the code I've got so far:

DesignBoard.java

Code:
import android.app.Activity;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.os.Bundle;

[Code]...

For those interested in pinch zoom, visit this link.

View 1 Replies View Related

HTC Hero :: Zooming In Google Docs

Feb 25, 2010

Im using a Hero and was disappointed that I cant zoom in when viewing my presentation in Google Docs mobile using the default browser. When I pinch zoom or double tap, the control buttons on the slide enlarge but the slide stays the same size also, I found out that if I turned off javascript in the browser settings, I can zoom in the slide as usual but then the control buttons stop working.

View 1 Replies View Related

Android : Webview Swipe Gesture Detect With Multitouch Zooming Enabled Withing Flipper

Jul 14, 2010

So is there a way for a webview control to detect a swipe while capable of doing multitouch zoom and having build-in zoom controls?

View 1 Replies View Related

Samsung Moment :: Multi Touch Zooming?

Nov 1, 2009

The moment renders multi touch zooming obsolete as far as I am concerned. Yeah, it might be neat. But IMHO, the zooming buttons on this browser works better. The centering feature when zooming works better. And you can zoom with one hand. Anyway, I will not miss it at all and I think the zoom feature on this is much better.

View 1 Replies View Related

Sony Ericsson Xperia X8 : Camara Could Not Use Zooming / Way To Fix?

Oct 21, 2010

I have purchased Xperia X8 yesterday and was trying to use camera and I could not use zooming...

View 4 Replies View Related

Motorola Droid X : Can't Get Video Camera Zooming

Sep 13, 2010

Am I missing something? I can't get the Droid X to zoom in video mode.

View 4 Replies View Related

HTC Desire : Zooming Function In On Camera - Video

Jul 15, 2010

Would I be right in thinking that when you are using the video camera you can't use the zoom function? I pressed every button and touched the screen a few times but nothing did it, had to stop filming, zoom in and start again.

View 5 Replies View Related

Motorola Droid X :: Lost Zooming Capability After Rooting / Fix For It?

Jul 28, 2010

So I used the "one touch" root method that I found in these forums, I think it was from Alldroid. Anyway so now I can no longer multi touch to zoom. Anyone else notice this or have an idea for the fix?

Also I have no cursor while typing in this box...?

View 11 Replies View Related

Motorola Droid X :: Browser Reformat Text When Zooming In Like Incredible?

Jul 15, 2010

One of the things I really like about the Incredible's browser is the fact that when you zoom in on text, it will reformat it so that you don't have to scroll from side to side to read everything, it makes it all in one column and does a very good job. Does the X's browser do this as well?

View 7 Replies View Related

Samsung Vibrant :: Constant Zooming - Scrolling Necessary To Read Through Content

Jul 18, 2010

I got the Vibrant today and the default web browser, although fast, is frustrating to navigate with all the constant zooming and scrolling necessary to read through the content. What's the best mobile web app for this phone?

View 11 Replies View Related

Sony Ericsson Xperia X10 Mini/pro :: Camera Features - Can't Find Any Zooming Options

Oct 15, 2010

i am unable to zoom pictures using the phone camera.. mostly all mobiles can zoom using the volume key. but it doesnt happen this way in xperia.. saddest part is that i cant find any option over the screen to zoom my pictures. is there no option at all wid this mobile??? or is there an option of downloading some camera features like these? i dont know. m styuc

View 14 Replies View Related

Android :: Zooming Image About Centre Of Image

Oct 12, 2010

I have an android application that needs to zoom an image about centre. i implemented the code...

View 1 Replies View Related

Android :: How To Get Every Row's Imageview

Nov 26, 2009

I am having custom Listview. Every row in listview contains image and textview.

After finishing the page I want to execute a thread which will get the reference of all the rows then will extract imgeview and set resource image as lazy loading image.

I just want to know how to get every row's image view so that I can set image resource in it.

View 1 Replies View Related

Android :: Possible To Use Url Image In ImageView

Nov 19, 2010

So here is my question. I am trying to use an online thumbnail. I can have looked around and have not found too much data on this. Can some provide me the simplest way to do this. Also If i implement a simpleExpandableListAdapter which is designed as a textView Adapter is there a way to force the image in?

View 4 Replies View Related

Android :: Get Color From ImageView - X/y

May 23, 2009

I have a ImageView with a Picture in it. When I touch the Picture through the TouchScreen, how can i get the ColorCode (eg. 0xff0033933) from the x/y Coordinate I clicked?

Something like: onTouch.GetColorCode (from the pixel bellow my finger)

View 2 Replies View Related

Android :: Hotspot In ImageView

Apr 20, 2010

how can I implement an imageview that has touch-sensitive hotspots so that when the user touches one, a dialog or something similar appears.

View 2 Replies View Related

Android :: ImageView In ListActivity

Jan 11, 2010

I have an ListActivity that I wan't to add a logo to at the top above the list but I'm unsuccessful. This is what my layout looks like at the moment.

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:id="@+id/logo" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:drawSelectorOnTop="false"> </ListView> <TextView android:id="@+id/empty" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/list_empty" /> </LinearLayout>

Then I add an drawable to the ImageView logo in onCreate. I've managed to show either the ListView or the ImageView but never both of them in the same LinearLayout. Is it possible to add other views together with a ListView?

View 3 Replies View Related

Android :: ImageView And ViewRoot

Apr 7, 2010

Question on an oddity I am seeing.

I have an ImageView that I am using to display a splash screen for a couple of seconds:

CODE:..................

View 3 Replies View Related

Android :: Text On Top Of A ImageView

Nov 18, 2009

I'm using Android 1.6.

I'm wondering if there's a simple way to put text on top of an ImageView element. Specifically, I'd like to have text overlayed on top of a rectangle filled with a color gradient.

I have the following in my XML layout:

CODE:................

But the text specified in android:text doesn't show up in my view.

Any thoughts on how to overlay text on top of an image?

There might be a simpler way to do this, so I'm open to alternative suggestions but I haven't been able to find anything via the google.

View 3 Replies View Related

Android :: ImageView's Zoom In/Out

Mar 19, 2010

How can I Zoom In/Out with ImageView.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved