干货 - LiveData, ViewModel, Retrofit, RxJava, Dagger2 架构,采用kotlin语言开发,仅用于学习。
接口Api:gank.io/api
截图
| 主界面 | 历史 | 文章详情 |
|---|---|---|
![]() |
![]() |
![]() |
| 分类 | 福利 | 福利详情 |
|---|---|---|
![]() |
![]() |
![]() |
依赖
功能点
- AppBarLayout、BottomNavigationView和FloatingActionButton在配合滑动列表滑动的时候隐藏/显示,具体代码
- Android 5.0上 webView 截取全屏方法,具体代码-73到88行
- 使用RecyclerView代替ViewPager分页查看图片,具体代码
- Dagger2的使用
- ViewModel搭配LiveData的使用
- 使用Lifecycle来管理生命周期
协议
Copyright 2018 Zheng Wang
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.





