- 这是一款能浏览Pixiv插画排行榜的demo。
- 使用的是 https://api.imjad.cn/pixiv/v1/ 提供的接口
- 使用RecyclerView实现界面的滑动
- 使用DialogFragment实现图片对话框的显示
- 使用TabLayout、ViewPaper和Fragment实现选项卡的效果
- 通过HttpURLConnection获取网络资源
- 使用AsyncTask获取json数据
- 通过Gson对json数据进行解析
- 使用HandlerThread实现图片的加载
- 使用LruCache和本地存储实现数据的缓存
- This is an android demo which can browse Pixiv's illust ranking.
- Use api from https://api.imjad.cn/pixiv/v1/
- Use RecyclerView to make the UI scrollable.
- Use DialogFragment to show image dialog.
- Use TabLayout, ViewPaper and Fragment to add tabs.
- Get network resource by HttpURLConnection.
- Use AsyncTask to get json data.
- Parse json data by Gson.
- Use HandlerThread to load image.
- Use LruCache and local cache to cache image.