Behavior of GridView in Android

I am having a GridView and added more than 50 images on it and performing delete operation on them.

I observe that what images i am deleting,they are leaving the blank space from top, means other images are not taking that place which is look so ugly.

I want that deleting image space should be covered by other images in grid.



if(v.getId() ==



after every image you delete try to reload grid view by calling notifydatasetchanged on adapter this will help link

Do you use a ListAdapter to populate your view ? Maybe you should recreate a new adapter when your list changes.


Try to use gridView.invalidateViews() instead of just .invalidate(). It redraws all views (ImageViews in your case) inside gridView.

Need Your Help

Photo Size With UIPrintInteractionController


I have one problem to print photo using AirPrint. I printed 4 * 6 inch image but printed image size is too large! How can I resolve this problem.

put config in secure place, can not link the files

php html ajax

Am trying to use a config file for a database and rating script but the problem is the config file is in this directory :

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.