I think this is a very late answer, but it can help others as well.
I find a library redesigned in listview and implemented a circular list. Library here and some code snippet
public void changeGroupFlag(Object obj) throws Exception { Field[] f = obj.getClass().getSuperclass().getSuperclass().getSuperclass().getDeclaredFields();
a source

Hope this helps.
Happy coding ...
source share