Set an ImageView at a particular position inside GridView

by tilo1583 » Mon, 10 May 2010 23:50:10 GMT

Sponsored Links
 I am using the GridView along with an ImageAdapter. The functionality
I want is that I select a particular image and drop it on to the
GridView. I want this image to snap to a cell closest to where it has
been dropped.

How do I tell the GridView (or the Adapter) to set this dropped Image
in the appropriate location?


Other Threads

1. WebView.zoomOut() doesn't work right

My HTML page is showing up close up and I'd like to zoom out - how can
I do this?  I've tried WebView.zoomOut(), and it doesn't seem to want
to work.  I'm wondering if it's just because the page isn't done
loading, so I tried putting it in a while loop to continue zooming out
until it was a success, but this doesn't even work.  I also tried
(just for testing) calling some 20 times on the method, and this
didn't work, except until I changed the orientation of the g1, then it
showed it zoomed far out.

What am I doing wrong?

public class Mancala extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        WebView wv = new WebView(this);
        WebSettings ws = wv.getSettings();

PS. Sorry if I posted two copies of this - I thought I sent one and
it's been a while and I don't see any trace of it, so I'm trying again.


2. SoundRecordingDemo in v1.0

I found SoundRecordingDemo in the mailing list files.
I tried this because I try to record a sound in one of my
First I had to add the RECORD_AUDIO permission in order not to have an
error message.
Regarding the code, the media scanner should be launched after
recording, but I had to do this myself (in dev tools application) in
order to see the new file in the music application.

3. Using resources in WebView

4. google contact ?

5. Enabling Qwerty keyboard with Android

6. Foreign Language support/Adding new system fonts

7. TabActivity > Theme > Activity : unable to override ?