imageview

How to make my ImageView zoomable?

Can anyone help on how to use the matrix scaletype to zoom an imageview and also how to use the translate method so that it can be focused at the center? I have tried using webview to be able to use the zooming and scrolling functionalities i needed but it is not nice to look at. ...

Correct transformations for image zooming

Hey, I'm writing an app for android (although I think this is a generic question) and I need to display a large image (in an ImageView) that can be scrolled and zoomed. I've managed to get scrolling to work by capturing touch events and performing matrix translations, and i'm now working on zooming. If I simply apply a scale transformat...

Image+TextView+radiobutton in spinner

First, I want to imitate the effect like "android.R.layout.simple_spinner_dropdown_item" which is TextView+radiobutton but either the getView() or getDropDownView only cares about one row at a time, while the whole radiobuttons in spinner is like one RadioGroup, and when dropdown view is opened, the radiobutton with which item is selec...

Move an imageView along a circular path

Hi all! I'm developing a game in which I've imageviews for bow and arrow. I actually wanted to move this arrow along a circular path when set in the air. Specifically, this circular path should be the one which an object will travel when thrown in the air at a distance i.e. it'll move upwards first and then downwards. I've already trie...

android imageview onClick animation

hi. I guess this is kind of an odd question but i have tried setting onClicklistener on an ImageView and it has worked. But the problem is that the user cannot sense the click. I mean if some of u have worked on other mobile environs(like apple iphone) then wen we click on a Image in other environs then it gives an effect on the image so...

Core data images from desktop to iphone

I built a simple mac data entry tool I use with an iPhone application. I've recently added thumbnail which I added via an Image Well using simple bindings. Its a transformable data type which seems to work fine. The iPhone application however won't show the images. The attribute isn't null but I can't get an image to appear. The followi...

Is it possible to have a Button with a background image with text on top?

Title says it all: I need button that has a replicated background pattern and normal button text on top - how to specify this in layout XML? ...

android imageview scrolling to display full high quality image

hi friends... i am working on displaying an image and placing an icon on top of it... clicking the icon will show an enlarged version of the image... though putting the imageview holding the image in a LinearLayout scales the image to the width of the dialog, the problem is that i need to display the image in a dialog but the image is ...

Assigning random image with arc4random?

Ok, I'm going to try to make this more clear because my last question was extremely confusing. I've included a picture this time. Each one of these circles is a UIImageView and they are each assigned a random image which is one of 7 colors. So each circle could be one of 7 colors. I want to make it so that the user has to hit the cir...

Freeze last frame of animation?

Is there a way to freeze the last frame of my animation in my iphone app? Here's my code so far. popup.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"picture1.png"], [UIImage imageNamed:@"picture2.png"], [UIImage image...

UITableViewCell imageView.contentMode doesn't work in 3.0

In UITableViewCellStyleDefault, setting the contentMode on the imageView has no result. If I change my build SDK to version 3.1, everything again works. I don't get any warnings or errors when compiling on 3.0 but this code: cell.imageView.contentMode = UIViewContentModeScaleAspectFit; cell.imageView.image = [UIImage imageNamed:[[NSSt...

Android: How to prevent image from being scaled in ImageView or ImageButton?

Hi, How can I prevent my bitmap from being scaled automatically in an ImageView or ImageButton if the view or button is stretched using "fill_parent" or using "weight"? This will be useful, for example, to create a 4-button toolbar at the top of the screen where the buttons are equally spaced, but the images inside the buttons keep g...

setting picture captured by built-in camera into an ImageView

in my app i m calling built in camera for capturing picture but i want to set that picture into an image view following is the code . so what code should i add to it to set the picture into imageview. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Intent i...

how to load an imageview by url in android?

for example i have an image's url: http://java.sogeti.nl/JavaBlog/wp-content/uploads/2009/04/android_icon_256.png i want to load this link image into my imageview in my project.how? ...

Moving views inside a layout/view in Android

. . I have more than one question, but I'll start with the more important and problematic one: . . I have a FrameLayout with a ImageView inside it. . . I need to get the size of the "usable area" of the screen my activity is ocupping, so I set the "onSizeChanged" on my View (I extended the ImageView class). Everything worked fine here. ...

Android serialization: ImageView

I have a simple class: public class Ball2 extends ImageView implements Serializable { public Ball2(Context context) { super(context); } } Serialization ok: private void saveState() throws IOException { ObjectOutputStream oos = new ObjectOutputStream(openFileOutput("data", MODE_PRIVATE)); try { ...

Image won`t fit screen

Hi, I have a 320x480 image which I`d like to fit the whole screen. This is the main.xml code <ImageView xmlns:android="http://schemas.android.com/apk/res/android"&gt; android:id='@+id/splash_medium' android:layout_width="fill_parent" android:layout_height="fill_parent" android:src="@drawable/wallpa...

Android: imageview and datepicker, Set image based on datepicker output

i have been developing iphone apps for a while now. I just started on android and have about half of my app done. My app calls the native datepicker which the user selects the date then on the selection of the date a particular image is show in the format 2010-3-24, same as android output. I have used the date picker tutorial to get t...

ImageView bounds are larger than expected in android layout

Hey all, This is a layout that I have defined in an app. As you can see, I would like the TextView "@details/image_time_counter" to be aligned with the bottom right of the image. Unfortunately, this is currently what shows - app - hierarchy viewer all - HV part 2. HierarchyViewer reports that the ImageView has bounds much bigger than w...

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? Until now I found two ways: overwriting ImageView, that seems a little bit too much for such a common problem. using a webview but with less control over the overall layout etc. ...