Back to project page DynamicGrid.
The source code is released under:
Apache License
If you think the Android project DynamicGrid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.askerov.dynamicgrid; //from w ww .j a v a 2s .c o m /** * Author: alex askerov * Date: 18/07/14 * Time: 23:44 */ /** * Any adapter used with DynamicGridView must implement DynamicGridAdapterInterface. * Adapter implementation also must has stable items id. * See {@link org.askerov.dynamicgrid.AbstractDynamicGridAdapter} for stable id implementation example. */ public interface DynamicGridAdapterInterface { /** * Determines how to reorder items dragged from <code>originalPosition</code> to <code>newPosition</code> */ void reorderItems(int originalPosition, int newPosition); /** * @return return columns number for GridView. Need for compatibility * (@link android.widget.GridView#getNumColumns() requires api 11) */ int getColumnCount(); }