[android-developers] Set an ImageView at a particular position inside GridView

2010-05-10 Thread tilo1583
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

[android-developers] Re: Deleting a View from its Parent

2010-03-22 Thread tilo1583
, 2010 at 9:12 AM, tilo1583 tilo1...@gmail.com wrote:  I tried your method, but it still does not work. GridView g = (GridView)findViewById(R.id.gridview1); g.removeAllViews(); It still gives the same exception, as 'removeAllViews() is unsupported' On Mar 18, 5:36 pm, social hub shubem

[android-developers] Re: Deleting a View from its Parent

2010-03-19 Thread tilo1583
event of button u call l.removeviews(); this shud work. you can try working along these lines. in your case you have to check what is the parent before u try to remove. This is based on my understanding of your problem. I can be wrong . On Thu, Mar 18, 2010 at 2:59 PM, tilo1583 tilo1

[android-developers] Deleting a View from its Parent

2010-03-18 Thread tilo1583
Hi Everyone, I am very new to Android development, but I am not new to develoment of UIs. I am trying to run this piece of code. Basically, there is a GridView which contains a bunch of ImageViews. To each of these image views I have added this onTouchListener as given below. However, the