Hi Wag! Team (and GitHub lurkers), thanks for the opportunity to do this challenge!
-
StackOverflow users are represented by the
StackOverflowUser
class. -
StackOverflowUserFactory
provides methods for parsing JSON data from StackOverflow. -
UserViewAdapter
is theRecyclerView
adapter for StackOverflow users. It fetches the avatars.
- Volley: I'm not sure if Volley counts as a third-party library, but I used it in place of
HttpsURLConnection
because that would require anAsyncTask
and the ensuing boilerplate. - Glide: Same reasoning as Volley; it is cleaner and faster to use than writing my own solution, and better optimized.
- The emulator has scroll lag, but the app runs smooth as butter on a real device. At first I thought it was an issue
with the
UserViewAdapter::onBindViewHolder
call, but it occurs even when the method is empty, and no network requests are being performed.
Nathan Matteson