[library] Fix NoSuchMethodError on AbsListView

AbsListView.setAdapter is only available for SDK_INT >= HONEYCOMB.
On lower version cast it to ListView or GridView.