[library] Add TargetApi annotation on setAdapterOnView()
[library] Target Android 17