imageview

How to create a gesture controlled rotating image for a UI

I'm trying to figure out the best way to make an image rotate along with a user's finger dragging it left or right. I want to try and match the rate a user's finger is moving with the rate the image is rotating. I've got the basic setup for my application going, with the menus and whatnot I want to have, and that's all running great on...

Loading remote images

What is the simplest approach to the following in Android: Load an image from a remote server. Display it in an ImageView. In other words, if you had to explain to someone how easy it is to work with remote images in Android how would you do it? ...

Various items in a ListView row - screenshot example

Hi guys, i want to achieve this kinda of row look in my app. I already have a ImageView/TextView layout, but i want that 'positive' little image in the right always being displayed at the exact same place! Thanks! ...

[Android] Images in TextView

1) How would one go about altering/extending TextView to render inline images? It seems that setText(Html.fromHtml(...image tags...)) might actually allow image insertion if set up correctly, but I haven't tried myself. Even if, I would still need fine grained control over the image drawing (my final goal is to display inline animated s...

Android: Set selected icon in GridView

I'm trying to find a way to store the name of an icon in my database, then use that name to let a user select an icon from an ImageView. I've found various guides on ImageViews and Galleries, but none that show how to get/set the selected image by name. The list of available images won't change, but what's that best way to implement this...

Identifying image area clicked in Android?

Is there a way to determine in an Android app which area of an ImageView (x,y coordinates, for instance) was clicked by a user? Thanks. ...

Positioning an imageview inside a FrameLayout with layout?! (changing ImageResource)

I have an ImageView with absolute size and position (in the FrameLayout): @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); layout((int)left, (int)(bottom-width), (int)(left+width), (int)bottom); } now when I change my ImageResource with: setImageResource(...); the position of all Images is set to top l...

Creating a grid of scaled ImageViews [Android]?

I need to make a grid whose width and height is the same as the screen. I guess I would somehow use DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); to do this but I need to scale the images inside so that each ImageView is 1/10th of the width of the screen (with 10 images for ...

Android - How to display an ImageView as a header in a listactivity ?

I'm trying to display an image before the list in a listactivity. If I put an ImageView before the ListView, then only the list is displayed... still quite an android n00b so any pointers appreciated :) Heres my main.xml which lays out the list activity: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schem...

Android ImageView with drawable not always rendering

I have an ImageView object that I'm setting the android:src="@drawable/some_xml_file" instead of a standard png and it seems to not always render the drawable, as you can see in the first row here (it also happens intermittently in other rows as well): I've tried setting the src & the background property but they both have the same effe...

Android, Imageview, a few questions

Hey Guys, I'm wondering.. 1)is it possible to set an imageview's resource to the URL location of an image? 2)is there a way of setting the x,y co-ords of where on the screen to draw the imageview? 3)How would I run a check to see if the space is taken up by another Imageview (must specifically be an imageview) 4) How would I make th...

Zoom Controls for ImageSwitcher in Android 1.6?

Hi folks, I wish to do the Image Switcher's Touch Event. That is when i touch it, it should wake up the zoom controls. After zoomed in, the image can able the touch scroll on the image up and down. how to do it? Is there any default zoom controls? If not, tell me your suggestion, idea and also valuable links about this? make a note the ...

Gallery and fullscreen ImageView, problem in putting them together.

Hi all, I will try to be as clear as possible. Here What I am trying to do An Image Viewer, where Image would be display as big as they can on the device screen. For this purspose and for a better user experience, I thought of a Gallery. Untill there everything is OK! The problem The problem is that in the function getView of my Ada...

Changing bounds of imageView of UITableViewCell

Hello everyone I'm trying to place various size images inside imageView of UITableViewCell. I get the image data asynch'ly, create the image, set the content mode of imageView and finally set bounds of imageView. But the code seems insensitive to any changes I made. I want the images to be centered in a 75x75 area. I wrote the below cod...

Drag and drop overlapping ImageView in Android

Hello all, I have a table-top style game board consisting of 10x10 squares. Each square is a PNG image. On top of these squares I want to place tiles which can be drag and dropped on top of the squares. What would be my best approach concerning Views? Is it possible to have two layers where layer one is a grid of ImageView's which rep...

Asynchronous image loader on listview [Android]

I'm having problems to implement an acynchronous image loader to the following code. I read some posts arround the web about it and I think I understand the logic behind it, but I seem to fail in implementing it. The code bellow is what I use to simply load the images in my listview. public class MyCustomAdapter extends ArrayAdapter<RS...

2 different views in android setContentView

I need to have 2 different images in one view. The GraphicsView(this) is supposed to be an animation (actually an image that rotates it self in the center of the view) and R.layout.main is supposed to be the background of the view (a static image again on the top of the view) What I need is an imageview on the top of the view and bellow...

Load Images in ImageView in Android

Hello all, In my application....there are some images like temp1.jpg, temp2.jpg .....upto temp35.jpg, so on button clicking, i want to load one-by-one image in ImageView .... i want to do like: cnt=1; imagename="temp" + cnt + ".jpg"; cnt++; so my confusion is that "is there anyway to load an image in imageview from string(image...

How to draw 2 PNG Images to the screen at the same time

I'd like to know how to draw two PNG pictures onto the screen. My XML layout: (named paperxml.xml) <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layoutid" android:layout_width="fill_parent" android:layout_height="fill_parent" android:o...

Null pointer exception before Activity.onCreate() when using custom Android ImageView

I have a customized ImageView that works fine in one application. I've transplanted it to another application and am getting a null pointer exception prior to either my activity's onCreate() method or my customized ImageView's constructor being invoked. So far, I am unable to determine why it works in one app and not in another. Eclipse ...