Closed dima-ostapovets closed 10 years ago
Hi!
Auto fit not working correctly because DynamicGridView need to know column count. Therefore we have abstract getColumnCount() in AbstractDynamicGridAdapter. DynamicGridView can't use GridView.getNumColumns() because it requires api 11.
If you don't need to support old api you can try to replace getAdapterInterface().getColumnCount() to getNumColumns() inside DynamicGridView.getColumnCount() and use autofit.
Thanks. Can I ask another question? How can I know old and new (after moving) index of element in the list? for example listener onChanged(int oldPosition, int newPosition). Thanks
2014-03-10 20:13 GMT+02:00 askerov notifications@github.com:
Hi!
Auto fit not working correctly because DynamicGridView need to know column count. Therefore we have abstract getColumnCount() in AbstractDynamicGridAdapter. DynamicGridView can't use GridView.getNumColumns() because it requires api 11.
If you don't need to support old api you can try to replace getAdapterInterface().getColumnCount() to getNumColumns() inside DynamicGridView.getColumnCount() and use autofit.
Reply to this email directly or view it on GitHubhttps://github.com/askerov/DynamicGrid/issues/7#issuecomment-37215078 .
Hi! Thanks for your library. What about columnNumber=autofit. It's not working correctly. Thanks