Skip to content

Commit

Permalink
添加延迟加载,避免fragment跳转动画和渲染ui同时进行导致卡顿
Browse files Browse the repository at this point in the history
  • Loading branch information
hegaojian committed Aug 10, 2020
1 parent f8c503d commit ba4abf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion JetpackMvvm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ publish {
groupId = 'me.hegj'//路径 名等于“me.hegj.JetpackMvvm:1.0.0”中的 me.hegj,你也可以写com.xxx
artifactId = 'JetpackMvvm'//项目名 等于“me.hegj.JetpackMvvm:1.0.0”中的 JetpackMvvm
publishVersion = '1.1.8'//版本号 等于“me.hegj.JetpackMvvm:1.0.0”中的 1.0.0
desc = 'An Android Jetpack-MVVM framework,JetpackMvvm is nb'//说明,不重要的东西,随便写
desc = 'An Android Jetpack-MVVM framework,JetpackMvvm is nb?'//说明,不重要的东西,随便写
website = 'https://github.com/hegaojian/JetpackMvvm'//项目主页,用GitHub地址
licences = ['Apache-2.0']//协议
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class HomeFragment : BaseFragment<HomeViewModel, FragmentHomeBinding>() {
//recyclerview的底部加载view 因为在首页要动态改变他的颜色,所以加了他这个字段
private lateinit var footView: DefineLoadMoreView

//收藏viewmodel
//收藏viewModel
private val requestCollectViewModel: RequestCollectViewModel by viewModels()

//请求数据ViewModel
Expand Down

0 comments on commit ba4abf2

Please sign in to comment.